Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/nvme/host/ioctl.c nvme_uring_cmd_io() -> nvme_validate_passthru_nsid()

Type Parameter Key Value
PARAM_VALUE 0 ctrl 4096-ptr_max
PARAM_VALUE 1 ns 0,4096-ptr_max
BUF_SIZE 0 ctrl s32min-(-1),1-s32max
BUF_SIZE 0 ctrl s32min-(-1),1-s32max
CAPPED_DATA 1 ns 1
DATA_SOURCE 0 ctrl $0
DATA_SOURCE 1 ns $1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &ctx->uring_lock

drivers/nvme/host/ioctl.c nvme_user_cmd() -> nvme_validate_passthru_nsid()

Type Parameter Key Value
PARAM_VALUE 1 ns 0,4096-ptr_max
BUF_SIZE 0 ctrl s32min-(-1),1-s32max
BUF_SIZE 0 ctrl s32min-(-1),1-s32max
BUF_SIZE 1 ns s32min-(-1),1-s32max
BUF_SIZE 1 ns s32min-(-1),1-s32max
CAPPED_DATA 1 ns 1
DATA_SOURCE 0 ctrl $0
DATA_SOURCE 1 ns $1
USER_DATA 2 nsid 0-u32max
UNITS 1 ns unit_byte

drivers/nvme/host/ioctl.c nvme_user_cmd64() -> nvme_validate_passthru_nsid()

Type Parameter Key Value
PARAM_VALUE 1 ns 0,4096-ptr_max
BUF_SIZE 0 ctrl s32min-(-1),1-s32max
BUF_SIZE 0 ctrl s32min-(-1),1-s32max
BUF_SIZE 1 ns s32min-(-1),1-s32max
BUF_SIZE 1 ns s32min-(-1),1-s32max
DATA_SOURCE 0 ctrl $0
DATA_SOURCE 1 ns $1
USER_DATA 2 nsid 0-u32max
UNITS 1 ns unit_byte