list.h 553 B

123456789101112131415161718
  1. #include "../../../../include/linux/list.h"
  2. #ifndef PERF_LIST_H
  3. #define PERF_LIST_H
  4. /**
  5. * list_del_range - deletes range of entries from list.
  6. * @begin: first element in the range to delete from the list.
  7. * @end: last element in the range to delete from the list.
  8. * Note: list_empty on the range of entries does not return true after this,
  9. * the entries is in an undefined state.
  10. */
  11. static inline void list_del_range(struct list_head *begin,
  12. struct list_head *end)
  13. {
  14. begin->prev->next = end->next;
  15. end->next->prev = begin->prev;
  16. }
  17. #endif