Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\core.c Create Date:2022-07-28 13:35:08
Last Modify:2022-05-20 07:50:19 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:perf_poll

Proto:static __poll_t perf_poll(struct file *file, poll_table *wait)

Type:__poll_t

Parameter:

TypeParameterName
struct file *file
poll_table *wait
5057  event = needed for tty driver, and maybe others
5059  events = EPOLLHUP
5061  poll_wait(file, & waitq, wait)
5063  If is_event_hup(event) Then Return events
5070  mutex_lock( & mmap_mutex)
5071  rb = rb
5072  If rb Then events = atomic_xchg( & POLL_ for wakeups , 0)
5074  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
5075  Return events