Implement the __add_wait_queue_entry_tail() function in the LinuxKPI.
Submitted by: Johannes Lundberg <johalun0@gmail.com> MFC after: 1 week Sponsored by: Mellanox Technologies Sponsored by: Limelight Networks
This commit is contained in:
parent
3f9e1fc8ee
commit
e6e028d01f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334717
@ -54,7 +54,10 @@
|
||||
struct wait_queue;
|
||||
struct wait_queue_head;
|
||||
|
||||
#define wait_queue_entry wait_queue
|
||||
|
||||
typedef struct wait_queue wait_queue_t;
|
||||
typedef struct wait_queue_entry wait_queue_entry_t;
|
||||
typedef struct wait_queue_head wait_queue_head_t;
|
||||
|
||||
typedef int wait_queue_func_t(wait_queue_t *, unsigned int, int, void *);
|
||||
@ -248,6 +251,12 @@ __add_wait_queue_tail(wait_queue_head_t *wqh, wait_queue_t *wq)
|
||||
list_add_tail(&wq->task_list, &wqh->task_list);
|
||||
}
|
||||
|
||||
static inline void
|
||||
__add_wait_queue_entry_tail(wait_queue_head_t *wqh, wait_queue_entry_t *wq)
|
||||
{
|
||||
list_add_tail(&wq->entry, &wqh->head);
|
||||
}
|
||||
|
||||
static inline void
|
||||
__remove_wait_queue(wait_queue_head_t *wqh, wait_queue_t *wq)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user