Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:f_setown_ex

Proto:static int f_setown_ex(struct file *filp, unsigned long arg)

Type:int

Parameter:

TypeParameterName
struct file *filp
unsigned longarg
162  __user * owner_p = arg
168  ret = copy_from_user( & owner, owner_p, size of owner )
169  If ret Then Return -EFAULT
173  Case type == F_OWNER_TID
174  type = PIDTYPE_PID
175  Break
177  Case type == F_OWNER_PID
178  type = PIDTYPE_TGID
179  Break
181  Case type == F_OWNER_PGRP
182  type = PIDTYPE_PGID
183  Break
185  Default
186  Return -EINVAL
189  _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
190  pid = find_vpid(pid)
191  If pid && Not pid Then ret = -ESRCH
193  Else __f_setown(filp, pid, type, 1)
195  _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()
197  Return ret
Caller
NameDescribe
do_fcntl