Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ns_revision_poll

Proto:static __poll_t ns_revision_poll(struct file *file, poll_table *pt)

Type:__poll_t

Parameter:

TypeParameterName
struct file *file
poll_table *pt
610  rev = needed for tty driver, and maybe others
611  mask = 0
613  If rev Then
614  mutex_lock_nested( & lock, level)
615  poll_wait(file, & wait, pt)
616  If last_read < revision Then mask |= Epoll event masks | EPOLLRDNORM
618  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.
621  Return mask