summaryrefslogtreecommitdiff
path: root/tests/unittest/include/linux/list.h
blob: c553a1488782b91dead4ff6246ba1af37e083d40 (plain)
1
2
3
4
5
6
7
8
9
#undef container_of
/*
 * The container_of construct: if p is a pointer to member m of
 * container class c, then return a pointer to the container of which
 * *p is a member.
 */
#define container_of(p, c, m) ((c *)((char *)(p) - offsetof(c,m)))

#include <../../../com32/include/linux/list.h>