__retval = wait_event_interruptible(wq, (condition)); \ freezer_count(); \ __retval; \ }) #define wait_event_freezable_timeout(wq, condition, timeout) \ ({ \ long __retval = timeout; \ freezer_do_not_count(); \ __retval = wait_event_interruptible_timeout(wq, (condition), \...
51CTO博客已为您找到关于wait_event_freezable的相关内容,包含IT学习相关文档代码介绍、相关教程视频课程,以及wait_event_freezable问答内容。更多wait_event_freezable相关解答可以来51CTO博客参与分享和学习,帮助广大IT技术人实现成长和进步。
__io_wait_event(wq_head, condition); \ } while (0) #define __wait_event_freezable(wq_head, condition) \ ___wait_event(wq_head, condition, TASK_INTERRUPTIBLE, 0, 0, \ freezable_schedule()) /** * wait_event_freezable - sleep (or freeze) until a condition gets...
@@ -246,15 +246,6 @@ static inline int freezable_schedule_hrtimeout_range(ktime_t *expires, * defined in <linux/wait.h> */ #define wait_event_freezekillable(wq, condition) \ ({ \ int __retval; \ freezer_do_not_count(); \ __retval = wait_event_killable(wq, (condition)); ...
freezable_schedule() // sleeps the current task set_current_state(TASK_RUNNING) // task has woken up futex_unqueue(q) When theFUTEX_WAIToperation is executed, the kernel calculates the hash of the futex and finds the hash bucket. The bucket lock is acquired, the futex word is read, and...
<linux/wait.h>(下文简称wait.h) 主要用于进程同步和等待队列的管理。它提供了一些宏和函数,用于实现内核中的等待队列机制,让进程能够在某些条件满足之前进入睡眠状态,并在条件满足时被唤醒。等待队列机制非常强大,广泛用于处理并发、同步和事件等待,这在驱动开发和内核模块编写中非常常见。
/ include / linux / wait.h v6 v6.13 v6.12 v6.12.6 v6.12.5 v6.12.4 v6.12.3 v6.12.2 v6.12.1 v6.12 v6.12-rc7 v6.12-rc6 v6.12-rc5 v6.12-rc4 v6.12-rc3 v6.12-rc2 v6.12-rc1 v6.11 v6.10 v6.9 v6.8 ...
___wait_event(wq_head, condition, TASK_INTERRUPTIBLE, 0, 0, \ schedule(); try_to_freeze()) freezable_schedule()) /** * wait_event_freezable - sleep (or freeze) until a condition gets true @@ -391,7 +391,7 @@ do { \ #define __wait_event_freezable_timeout(wq_head, condition...
Search or jump to... Search code, repositories, users, issues, pull requests... Provide feedback We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to fil...
Available add-ons Advanced Security Enterprise-grade security features GitHub Copilot Enterprise-grade AI features Premium Support Enterprise-grade 24/7 support Pricing Search or jump to... Search code, repositories, users, issues, pull requests... Provide feedback We read every piece of ...