函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\eventpoll.c Create Date:2022-07-29 10:50:51
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:ep_poll_safewake

函数原型:static void ep_poll_safewake(wait_queue_head_t *wq)

返回类型:void

参数:

类型参数名称
wait_queue_head_t *wq
561  local_irq_save(flags)
562  禁止抢占()
563  subclass等于Operations for contexts that are safe from preemption/interrupts. These* operations verify that preemption is disabled.(As described in commit 0ccf831cb lockdep: annotate epoll* the use of wait queues used by epoll is done in a very controlled* manner)
564  spin_lock_nested( & lock, subclass + 1)
565  __this_cpu_inc(As described in commit 0ccf831cb lockdep: annotate epoll* the use of wait queues used by epoll is done in a very controlled* manner)
566  wake_up_locked_poll(wq, POLLIN)
567  __this_cpu_dec(As described in commit 0ccf831cb lockdep: annotate epoll* the use of wait queues used by epoll is done in a very controlled* manner)
568  自旋锁解锁
569  local_irq_restore(flags)
570  禁用抢占和中断()
调用者
名称描述
ep_free
ep_poll_callbackThis is the callback that is passed to the wait queue wakeup* mechanism
ep_insertMust be called with "mtx" held.
ep_modifyModify the interest event mask by dropping an event if the new mask* has a match in the current file status. Must be called with "mtx" held.