25 #ifndef __MOTR_LIB_USER_SPACE_MISC_H__ 26 #define __MOTR_LIB_USER_SPACE_MISC_H__ 29 #define offsetof(typ,memb) __builtin_offsetof(typ, memb) 33 #define container_of(ptr, type, member) \ 34 ((type *)((char *)(ptr)-(char *)(&((type *)0)->member))) 38 #define NULL ((void *)0) 45 #define ARRAY_SIZE(a) ((sizeof (a)) / (sizeof (a)[0])) 48 #define M0_EXPORTED(s)
M0_INTERNAL void m0_performance_counters(char *buf, size_t buf_len)
M0_INTERNAL int m0_host_resolve(const char *name, char *buf, size_t bufsiz)