Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:f_setown

Proto:int f_setown(struct file *filp, unsigned long arg, int force)

Type:int

Parameter:

TypeParameterName
struct file *filp
unsigned longarg
intforce
116  struct pid * pid = NULL
117  who = arg , ret = 0
119  type = PIDTYPE_TGID
120  If who < 0 Then
122  If who == INT_MIN Then Return -EINVAL
125  type = PIDTYPE_PGID
126  who = -who
129  _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
130  If who Then
131  pid = find_vpid(who)
132  If Not pid Then ret = -ESRCH
136  If Not ret Then __f_setown(filp, pid, type, force)
138  _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()
140  Return ret
Caller
NameDescribe
do_fcntl