diff options
author | hselasky <hselasky@FreeBSD.org> | 2018-02-25 10:32:26 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2018-02-25 10:32:26 +0000 |
commit | e07d17e2bcff2bec4cceca484c025767d7bf520f (patch) | |
tree | 7f5b7ea34a5caf82ac1d2ea896a6583d52ffc597 | |
parent | df1e3738395eb202a2257affc9074284c1638494 (diff) | |
download | FreeBSD-src-e07d17e2bcff2bec4cceca484c025767d7bf520f.zip FreeBSD-src-e07d17e2bcff2bec4cceca484c025767d7bf520f.tar.gz |
MFC r329512:
Implement __list_del_entry() helper functions in the LinuxKPI.
Submitted by: Johannes Lundberg <johalun0@gmail.com>
Sponsored by: Mellanox Technologies
Sponsored by: Limelight Networks
-rw-r--r-- | sys/compat/linuxkpi/common/include/linux/list.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/list.h b/sys/compat/linuxkpi/common/include/linux/list.h index c235c26..311a6ad 100644 --- a/sys/compat/linuxkpi/common/include/linux/list.h +++ b/sys/compat/linuxkpi/common/include/linux/list.h @@ -117,6 +117,13 @@ __list_del(struct list_head *prev, struct list_head *next) } static inline void +__list_del_entry(struct list_head *entry) +{ + + __list_del(entry->prev, entry->next); +} + +static inline void list_del(struct list_head *entry) { |