函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:pipe_fcntl

函数原型:long pipe_fcntl(struct file *file, unsigned int cmd, unsigned long arg)

返回类型:long

参数:

类型参数名称
struct file *file
unsigned intcmd
unsigned longarg
1277  pipe等于After the inode slimming patch, i_pipe/i_bdev/i_cdev share the same* location, so checking ->i_pipe is not enough to verify that this is a* pipe.
1278  如果非pipe则返回:负EBADF
1281  __pipe_lock(pipe)
1284  :cmd恒等于Set and get of pipe page size array
1285  ret等于Allocate a new array of pipe buffers and copy the info over. Returns the* pipe size if successful, or return -ERROR on error.
1286  退出
1287  :cmd恒等于F_GETPIPE_SZ
1288  ret等于max_usagePAGE_SIZE
1289  退出
1290  默认
1291  ret等于负EINVAL
1292  退出
1295  __pipe_unlock(pipe)
1296  返回:ret
调用者
名称描述
do_fcntl