Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\psi.c Create Date:2022-07-28 09:46:59
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:psi_trigger_poll

Proto:__poll_t psi_trigger_poll(void **trigger_ptr, struct file *file, poll_table *wait)

Type:__poll_t

Parameter:

TypeParameterName
void **trigger_ptr
struct file *file
poll_table *wait
1164  ret = DEFAULT_POLLMASK
1167  If static_branch_likely( & psi_disabled) Then Return DEFAULT_POLLMASK | EPOLLERR | EPOLLPRI
1170  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
1172  t = fetch RCU-protected pointer for dereferencing( * (void__rcu__force * * )trigger_ptr)
1173  If Not t Then
1174  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
1175  Return DEFAULT_POLLMASK | EPOLLERR | EPOLLPRI
1177  kref_get - increment refcount for object.*@kref: object.
1179  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
1181  poll_wait(file, & event_wait, wait)
1183  If cmpxchg( & event, 1, 0) == 1 Then ret |= EPOLLPRI
1186  kref_put - decrement refcount for object.*@kref: object.*@release: pointer to the function that will clean up the object when the* last reference to the object is released.* This pointer is required, and it is not acceptable to pass kfree
1188  Return ret
Caller
NameDescribe
psi_fop_poll