Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

fs/smb/client/smb1transport.c SendReceive() -> smbCalcSize()

Type Parameter Key Value
BIT_INFO 0 buf 0x0,0x0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 buf unit_byte
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &ses->session_mutex
HALF_LOCKED2 global &cifs_mount_mutex

fs/smb/client/smb1transport.c checkSMB() -> smbCalcSize()

Type Parameter Key Value
PARAM_VALUE 0 buf 4096-ptr_max
DATA_SOURCE 0 buf $0
HALF_LOCKED2 &server->mid_queue_lock

fs/smb/client/smb1transport.c coalesce_t2() -> smbCalcSize()

Type Parameter Key Value
PARAM_VALUE 0 buf 4096-ptr_max
DATA_SOURCE 0 buf $1

fs/smb/client/readdir.c cifs_readdir() -> (struct smb_version_operations)->calc_smb_size()

Type Parameter Key Value
BUF_SIZE 0 buf s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &dir_fp->readdir_lock
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct inode)->i_rwsem

fs/smb/client/readdir.c find_cifs_entry() -> (struct smb_version_operations)->calc_smb_size()

Type Parameter Key Value
PARAM_VALUE 0 buf 1-u64max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &dir_fp->readdir_lock
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct inode)->i_rwsem

fs/smb/client/smb2ops.c smb2_dump_detail() -> (struct smb_version_operations)->calc_smb_size()

Type Parameter Key Value
PARAM_VALUE 0 buf 1-u64max
DATA_SOURCE 0 buf $0
LOCK2 &server->mid_queue_lock
LOCK2 &server->srv_lock
TYPE_LOCK (struct TCP_Server_Info)->mid_queue_lock
TYPE_LOCK (struct TCP_Server_Info)->srv_lock

fs/smb/client/smb1debug.c cifs_dump_detail() -> (struct smb_version_operations)->calc_smb_size()

Type Parameter Key Value
PARAM_VALUE 0 buf 1-u64max
DATA_SOURCE 0 buf $0
LOCK2 &server->mid_queue_lock
TYPE_LOCK (struct TCP_Server_Info)->mid_queue_lock