Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:block_ioctl

Proto:static long block_ioctl(struct file *file, unsigned cmd, unsigned long arg)

Type:long

Parameter:

TypeParameterName
struct file *file
unsignedcmd
unsigned longarg
1971  bdev = I_BDEV(bdev_file_inode(file))
1972  mode = f_mode
1978  If f_flags & O_NDELAY Then mode |= File is opened with O_NDELAY (only set for block devices)
1980  Else mode &= ~File is opened with O_NDELAY (only set for block devices)
1983  Return blkdev_ioctl(bdev, mode, cmd, arg)