return head->next == head;
}
+/**
+ * list_exactly_one - tests whether a list has exactly one element
+ * @head: the list to test.
+ */
+static inline int list_exactly_one(const struct list_head* head)
+{
+ return head->next == head->prev;
+}
+
+/**
+ * list_more_than_one - tests whether a list has more than one element
+ * @head: the list to test.
+ */
+static inline int list_more_than_one(const struct list_head* head)
+{
+ return head->next != head->prev;
+}
+
/**
* list_rotate_left - rotate the list to the left
* @head: the head of the list