Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:pipe_fcntl

Proto:long pipe_fcntl(struct file *file, unsigned int cmd, unsigned long arg)

Type:long

Parameter:

TypeParameterName
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  If Not pipe Then Return -EBADF
1281  __pipe_lock(pipe)
1284  Case 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  Break
1287  Case cmd == F_GETPIPE_SZ
1288  ret = max_usage * PAGE_SIZE
1289  Break
1290  Default
1291  ret = -EINVAL
1292  Break
1295  __pipe_unlock(pipe)
1296  Return ret
Caller
NameDescribe
do_fcntl