Searched refs:list_is_head (Results 1 - 3 of 3) sorted by relevance
/kernel/linux/linux-6.6/include/linux/ |
H A D | list.h | 358 * list_is_head - tests whether @list is the list @head 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(po [all...] |
/kernel/linux/linux-6.6/scripts/mod/ |
H A D | list.h | 134 * list_is_head - tests whether @list is the list @head 138 static inline int list_is_head(const struct list_head *list, const struct list_head *head) in list_is_head() function
|
/kernel/linux/linux-6.6/lib/ |
H A 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()
|
Completed in 4 milliseconds