Go to the documentation of this file.
26 #ifndef __BASIC_TYPES_H__
27 #define __BASIC_TYPES_H__
32 #include <linux/types.h>
34 #define SIZE_T __kernel_size_t
35 #define sint signed int
36 #define FIELD_OFFSET(s, field) ((addr_t)&((s *)(0))->field)
42 #define addr_t unsigned long
44 #define MEM_ALIGNMENT_OFFSET (sizeof(SIZE_T))
45 #define MEM_ALIGNMENT_PADDING (sizeof(SIZE_T) - 1)