Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 4 files:

Smatch caller information:

net/packet/af_packet.c packet_ioctl() -> (struct proto_ops)->ioctl()

Type Parameter Key Value
PARAM_VALUE 0 sock 4096-ptr_max
PARAM_VALUE 1 cmd 35083-35084,35092-35100,35155-35157
BUF_SIZE 0 sock s32min-(-1),1-s32max
BUF_SIZE 0 sock s32min-(-1),1-s32max
DATA_SOURCE 0 sock $0
DATA_SOURCE 1 cmd $1
DATA_SOURCE 2 arg $2
USER_DATA 1 cmd 35083-35084,35092-35100,35155-35157
USER_DATA 2 arg 0-u64max
HALF_LOCKED2 &smc->sk

net/smc/af_smc.c smc_ioctl() -> (struct proto_ops)->ioctl()

Type Parameter Key Value
PARAM_VALUE 0 sock 4096-ptr_max
PARAM_VALUE 0 sock->ops 4096-ptr_max
DATA_SOURCE 1 cmd $1
DATA_SOURCE 2 arg $2
CONTAINER 0 *(-72-32+0) $(-1)
USER_DATA 1 cmd 0-35072,35077,35080-35089,35091-35135,35138-35147,35149-35201
USER_DATA 2 arg 0-u64max
LOCK2 &smc->sk
HALF_LOCKED2 &smc->sk
TYPE_LOCK (struct smc_sock)->sk

net/socket.c sock_do_ioctl() -> (struct proto_ops)->ioctl()

Type Parameter Key Value
PARAM_VALUE 0 sock 4096-ptr_max
PARAM_VALUE 0 sock->ops 4096-ptr_max
PARAM_VALUE 1 cmd 0-35072,35077,35080-35089,35091-35135,35138-35147,35149-35201,35204-35231,35236-35311,35328-35583,35840-2148567301,2148567304-u32max
BUF_SIZE 0 sock s32min-(-2),1-s32max
BUF_SIZE 0 sock s32min-(-2),1-s32max
CAPPED_DATA 1 cmd 1
DATA_SOURCE 0 sock $1
DATA_SOURCE 1 cmd $2
DATA_SOURCE 2 arg $3
USER_DATA 1 cmd 0-35072,35077,35080-35089,35091-35135,35138-35147,35149-35201[c
USER_DATA 2 arg 0-u64max