![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 0002 /* atmapi.h - ATM API user space/kernel compatibility */ 0003 0004 /* Written 1999,2000 by Werner Almesberger, EPFL ICA */ 0005 0006 0007 #ifndef _LINUX_ATMAPI_H 0008 #define _LINUX_ATMAPI_H 0009 0010 #if defined(__sparc__) || defined(__ia64__) 0011 /* such alignment is not required on 32 bit sparcs, but we can't 0012 figure that we are on a sparc64 while compiling user-space programs. */ 0013 #define __ATM_API_ALIGN __attribute__((aligned(8))) 0014 #else 0015 #define __ATM_API_ALIGN 0016 #endif 0017 0018 0019 /* 0020 * Opaque type for kernel pointers. Note that _ is never accessed. We need 0021 * the struct in order hide the array, so that we can make simple assignments 0022 * instead of being forced to use memcpy. It also improves error reporting for 0023 * code that still assumes that we're passing unsigned longs. 0024 * 0025 * Convention: NULL pointers are passed as a field of all zeroes. 0026 */ 0027 0028 typedef struct { unsigned char _[8]; } __ATM_API_ALIGN atm_kptr_t; 0029 0030 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |