Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:sg_set_reserved_size

Proto:static int sg_set_reserved_size(struct request_queue *q, int __user *p)

Type:int

Parameter:

TypeParameterName
struct request_queue *q
int __user *p
91  err = Get a simple variable from user space(size, p)
93  If err Then Return err
96  If size < 0 Then Return -EINVAL
99  sg_reserved_size = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(size, max_sectors_bytes(q))
100  Return 0
Caller
NameDescribe
scsi_cmd_ioctl