Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/include/linux/wait.h
Context not available. | |||||
#include <linux/compiler.h> | #include <linux/compiler.h> | ||||
#include <linux/list.h> | #include <linux/list.h> | ||||
#include <linux/spinlock.h> | #include <linux/spinlock.h> | ||||
#include <linux/lockdep.h> | |||||
#include <asm/atomic.h> | #include <asm/atomic.h> | ||||
Context not available. | |||||
}; \ | }; \ | ||||
MTX_SYSINIT(name, &(name).lock.m, spin_lock_name("wqhead"), MTX_DEF) | MTX_SYSINIT(name, &(name).lock.m, spin_lock_name("wqhead"), MTX_DEF) | ||||
#define init_waitqueue_head(wqh) do { \ | static inline void | ||||
mtx_init(&(wqh)->lock.m, spin_lock_name("wqhead"), \ | __init_waitqueue_head(wait_queue_head_t *wqh, __unused const void *name, | ||||
markj: Style is broken here. | |||||
NULL, MTX_DEF | MTX_NEW | MTX_NOWITNESS); \ | __unused void *key) { | ||||
INIT_LIST_HEAD(&(wqh)->task_list); \ | mtx_init(&(wqh)->lock.m, spin_lock_name("wqhead"), NULL, | ||||
} while (0) | MTX_DEF | MTX_NEW | MTX_NOWITNESS); | ||||
INIT_LIST_HEAD(&(wqh)->task_list); | |||||
} | |||||
#define init_waitqueue_head(wqh) do { \ | |||||
__init_waitqueue_head(wqh, NULL, NULL); \ | |||||
} while (0) | |||||
void linux_wake_up(wait_queue_head_t *, unsigned int, int, bool); | void linux_wake_up(wait_queue_head_t *, unsigned int, int, bool); | ||||
Context not available. | |||||
Done Inline ActionsAre you sure this is right? hselasky: Are you sure this is right? | |||||
Done Inline ActionsNo. There are two versions, one where __ret is not set.. I can't tell which is newer. Did you write this piece? johalun0_gmail.com: No. There are two versions, one where __ret is not set.. I can't tell which is newer. Did you… |
Style is broken here.