Rev 996 | Rev 1963 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 996 | Rev 999 | ||
---|---|---|---|
Line 175... | Line 175... | ||
175 | static inline void headless_list_concat(link_t *part1, link_t *part2) |
175 | static inline void headless_list_concat(link_t *part1, link_t *part2) |
176 | { |
176 | { |
177 | headless_list_split_or_concat(part1, part2); |
177 | headless_list_split_or_concat(part1, part2); |
178 | } |
178 | } |
179 | 179 | ||
180 | #define list_get_instance(link,type,member) (type *)(((__u8*)(link))-((__u8*)&(((type *)NULL)->member))) |
180 | #define list_get_instance(link,type,member) (type *)(((char *)(link))-((char *)&(((type *)NULL)->member))) |
181 | 181 | ||
182 | extern int list_member(const link_t *link, const link_t *head); |
182 | extern int list_member(const link_t *link, const link_t *head); |
183 | extern void list_concat(link_t *head1, link_t *head2); |
183 | extern void list_concat(link_t *head1, link_t *head2); |
184 | 184 | ||
185 | #endif |
185 | #endif |