mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-07-01 23:53:16 -04:00
new helper: wait_event_killable_exclusive()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
6d4e56ce97
commit
6a0fb30673
1 changed files with 13 additions and 0 deletions
|
@ -600,6 +600,19 @@ do { \
|
|||
__ret; \
|
||||
})
|
||||
|
||||
#define __wait_event_killable_exclusive(wq, condition) \
|
||||
___wait_event(wq, condition, TASK_KILLABLE, 1, 0, \
|
||||
schedule())
|
||||
|
||||
#define wait_event_killable_exclusive(wq, condition) \
|
||||
({ \
|
||||
int __ret = 0; \
|
||||
might_sleep(); \
|
||||
if (!(condition)) \
|
||||
__ret = __wait_event_killable_exclusive(wq, condition); \
|
||||
__ret; \
|
||||
})
|
||||
|
||||
|
||||
#define __wait_event_freezable_exclusive(wq, condition) \
|
||||
___wait_event(wq, condition, TASK_INTERRUPTIBLE, 1, 0, \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue