Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\bsg.c Create Date:2022-07-28 17:37:47
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:bsg_ioctl

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

Type:long

Parameter:

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