函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\fcntl.c Create Date:2022-07-29 10:35:41
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:f_setown_ex

函数原型:static int f_setown_ex(struct file *filp, unsigned long arg)

返回类型:int

参数:

类型参数名称
struct file *filp
unsigned longarg
162  __userowner_p等于arg
168  ret等于copy_from_user( & owner, owner_p, owner的长度)
169  如果ret则返回:负EFAULT
173  :type恒等于F_OWNER_TID
174  type等于单一进程
175  退出
177  :type恒等于F_OWNER_PID
178  type等于PIDTYPE_TGID
179  退出
181  :type恒等于F_OWNER_PGRP
182  type等于进程组
183  退出
185  默认
186  返回:负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  如果pid且非pidret等于负ESRCH
193  否则__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  返回:ret
调用者
名称描述
do_fcntl