Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:f_getown_ex

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

Type:int

Parameter:

TypeParameterName
struct file *filp
unsigned longarg
202  __user * owner_p = arg
204  ret = 0
206  read_lock( & protects pid, uid, euid fields )
207  pid = pid_vnr( pid or -pgrp where SIGIO should be sent )
209  Case Kind of process group SIGIO should be sent to == PIDTYPE_PID
210  type = F_OWNER_TID
211  Break
213  Case Kind of process group SIGIO should be sent to == PIDTYPE_TGID
214  type = F_OWNER_PID
215  Break
217  Case Kind of process group SIGIO should be sent to == PIDTYPE_PGID
218  type = F_OWNER_PGRP
219  Break
221  Default
222  WARN_ON(1)
223  ret = -EINVAL
224  Break
226  read_unlock( & protects pid, uid, euid fields )
228  If Not ret Then
229  ret = copy_to_user(owner_p, & owner, size of owner )
230  If ret Then ret = -EFAULT
233  Return ret
Caller
NameDescribe
do_fcntl