函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\psi.c Create Date:2022-07-27 10:47:19
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:psi_trigger_poll

函数原型:__poll_t psi_trigger_poll(void **trigger_ptr, struct file *file, poll_table *wait)

返回类型:__poll_t

参数:

类型参数名称
void **trigger_ptr
struct file *file
poll_table *wait
1164  ret等于DEFAULT_POLLMASK
1167  如果static_branch_likely( & psi_disabled)则返回: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等于cu_dereference() - fetch RCU-protected pointer for dereferencing*@p: The pointer to read, prior to dereferencing* This is a simple wrapper around rcu_dereference_check().( * (void__rcu__force * * )trigger_ptr)
1173  如果非t
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  返回:DEFAULT_POLLMASK按位或EPOLLERR按位或EPOLLPRI
1177  对象增加引用
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  如果cmpxchg( & event, 1, 0)恒等于1则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  返回:ret
调用者
名称描述
psi_fop_poll