b6615eeaf1edfbd7d95090d0d4658dfedaf9da2c
6 #define container_of(ptr, type, member) ({ \
7 const typeof( ((type *)0)->member ) *__mptr = (ptr); \
8 (type *)( (char *)__mptr - offsetof(type,member) );})
13 static inline void *ERR_PTR(long error
)
15 return (void *) error
;
27 #define DEFINE_MUTEX(m) pthread_mutex_t (m) = PTHREAD_MUTEX_INITIALIZER;
29 #define mutex_lock(m) pthread_mutex_lock(m)
31 #define mutex_unlock(m) pthread_mutex_unlock(m)
36 #define kmalloc(s, t) malloc(s)
37 #define kzalloc(s, t) malloc(s)
38 #define kfree(p) free((void *)p)
39 #define kstrdup(s, t) strdup(s)
43 #define printk(fmt, args...) printf(fmt, ## args)
51 #define read_barrier_depends()
52 #define smp_read_barrier_depends()
55 #define rcu_assign_pointer(a, b)
56 #endif /* KERNELCOMPAT_H */
This page took 0.048566 seconds and 3 git commands to generate.