10 #define NULL ((void *)0)
56 #define offsetof(type, member) \
57 ((size_t) & (((type *)0)->member))
61 #define container_of(ptr, type, member) \
62 ((type *)((char *)(1 ? (ptr) : &((type *)0)->member) - offsetof(type, member)))
64 #define container_of(ptr, type, member) \
65 ((type *)((char *)ptr - offsetof(type, member)))
69 #define alignof(type) offsetof( \
70 struct { char c; type member; }, member)
73 #define count_of(x) ((sizeof(x) / sizeof((x)[0])) / ((size_t)(!(sizeof(x) % sizeof((x)[0])))))
84 typeof(a) temp = (a); \
unsigned int pgprot_t
This data-type is used to set protection bits of pages.
Definition: stddef.h:52
unsigned char byte_t
Define the byte type.
Definition: stddef.h:25
int gid_t
The type of group-id.
Definition: stddef.h:43
long ssize_t
Define the generic signed size type.
Definition: stddef.h:31
long int off_t
The type of offset.
Definition: stddef.h:46
unsigned int dev_t
Used for device IDs.
Definition: stddef.h:37
unsigned int ino_t
Define the type of an inode.
Definition: stddef.h:34
long signed int ptrdiff_t
Is the signed integer type of the result of subtracting two pointers.
Definition: stddef.h:22
unsigned long size_t
Define the generic size type.
Definition: stddef.h:28
unsigned int mode_t
The type of mode.
Definition: stddef.h:49
int uid_t
The type of user-id.
Definition: stddef.h:40