* list_empty - tests whether a list is empty * @head: the list to test. */
| 128 | * @head: the list to test. |
| 129 | */ |
| 130 | static inline int list_empty(const struct list_head *head) |
| 131 | { |
| 132 | return head->next == head; |
| 133 | } |
| 134 | |
| 135 | /** |
| 136 | * list_is_singular - tests whether a list has just one entry. |
no outgoing calls