Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\eventpoll.c Create Date:2022-07-28 20:19:06
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ep_poll_safewake

Proto:static void ep_poll_safewake(wait_queue_head_t *wq)

Type:void

Parameter:

TypeParameterName
wait_queue_head_t *wq
561  local_irq_save(flags)
562  Even if we don't have any preemption, we need preempt disable/enable* to be barriers, so that we don't have things like get_user/put_user* that can cause faults and scheduling migrate into our preempt-protected* region.()
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  spin_unlock( & lock)
569  local_irq_restore(flags)
570  preempt_enable()
Caller
NameDescribe
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.