Lines Matching defs:_chain
53 #define CHAIN(_type, _chain) \
58 } _chain
60 #define CHAIN_ITER(_chain, _itv) \
61 for ((_itv) = CHAIN_START(_chain); (_itv) != NULL; \
68 * Add node _nodep to the end of _chain via the required 'nextp' element.
70 #define CHAIN_ADD(_chain, _nodep) \
72 if ((_chain).startp == NULL) { \
73 (_chain).startp = (_nodep); \
75 (_chain).endp->nextp = (_nodep); \
77 (_chain).endp = (_nodep); \
79 (_chain).count++; \