Searched refs:list_is_head (Results 1 – 3 of 3) sorted by relevance
/linux-6.6.21/include/linux/ |
D | list.h | 362 static inline int list_is_head(const struct list_head *list, const struct list_head *head) in list_is_head() function 410 return list_is_head(next, head) && (next == READ_ONCE(head->prev)); in list_empty_careful() 485 if (list_is_singular(head) && !list_is_head(entry, head) && (entry != head->next)) in list_cut_position() 487 if (list_is_head(entry, head)) in list_cut_position() 687 for (pos = (head)->next; !list_is_head(pos, (head)); pos = pos->next) 696 !list_is_head(pos, (head)); \ 707 for (pos = pos->next; !list_is_head(pos, (head)); pos = pos->next) 715 for (pos = (head)->prev; !list_is_head(pos, (head)); pos = pos->prev) 725 !list_is_head(pos, (head)); \ 736 !list_is_head(pos, (head)); \
|
/linux-6.6.21/scripts/mod/ |
D | list.h | 138 static inline int list_is_head(const struct list_head *list, const struct list_head *head) in list_is_head() function
|
/linux-6.6.21/lib/ |
D | list-test.c | 267 KUNIT_EXPECT_TRUE_MSG(test, list_is_head(&a, &a), in list_test_list_is_head() 269 KUNIT_EXPECT_FALSE_MSG(test, list_is_head(&a, &b), in list_test_list_is_head() 271 KUNIT_EXPECT_FALSE_MSG(test, list_is_head(&a, &c), in list_test_list_is_head()
|