Searched refs:offset_of (Results 1 – 3 of 3) sorted by relevance
31 #ifndef offset_of32 #define offset_of(type, member) \ macro38 ((type *)((void *)(ptr) - offset_of(type, member)))
40 #ifndef offset_of41 #define offset_of(type, member) \ macro47 ((type *)((void *)(ptr) - offset_of(type, member)))
582 p = xaf_malloc(offset_of(xf_pool_t, buffer) + number * sizeof(xf_buffer_t), id); in xf_pool_alloc()