函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:bsg_ioctl

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

返回类型:long

参数:

类型参数名称
struct file *file
unsigned intcmd
unsigned longarg
349  bd等于 needed for tty driver, and maybe others
350  __useruarg等于arg
356  :cmd恒等于Yields 0 (queuing off) or 1 (on)
357  返回:bsg_get_command_q(bd, uarg)
358  :cmd恒等于Change queuing state with 0 or 1
359  返回:bsg_set_command_q(bd, uarg)
364  :cmd恒等于Example: version 2.1.34 yields 20134
365  :cmd恒等于Used to obtain PUN and LUN info. Conflicts with CDROMAUDIOBUFSIZ
366  :cmd恒等于Used to obtain the bus number for a device
367  :cmd恒等于unit: jiffies (10ms on i386)
368  :cmd恒等于yield timeout as _return_ value
369  :cmd恒等于actual size of reserved buffer
370  :cmd恒等于quest a new reserved buffer size
371  :cmd恒等于rue for emulated host adapter (ATAPI)
372  :cmd恒等于SCSI_IOCTL_SEND_COMMAND
373  返回:scsi_cmd_ioctl(queue, NULL, f_mode, cmd, uarg)
374  :cmd恒等于similar effect as write() followed by read()
375  返回:bsg_sg_io(queue, f_mode, uarg)
376  默认
377  返回:负ENOTTY