Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 4 files:

Smatch caller information:

fs/smb/client/readdir.c cifs_readdir() -> open_cached_dir()

Type Parameter Key Value
PARAM_VALUE 2 path 2811-ptr_max
PARAM_VALUE 4 lookup_only 0
PARAM_VALUE 5 ret_cfid 7429024908350742528
PARAM_VALUE 5 *ret_cfid 0
DATA_SOURCE 0 xid r _get_xid
DATA_SOURCE 2 path r build_path_from_dentry
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 cifs_readdir() -> open_cached_dir()

Type Parameter Key Value
PARAM_VALUE 1 tcon 4096-ptr_max
PARAM_VALUE 1 tcon->ses->server 4096-ptr_max
PARAM_VALUE 1 tcon->ses->server->ops 4096-ptr_max
PARAM_VALUE 1 tcon->ses->server->vals->protocol_id 0,514,528,768,770,785
PARAM_VALUE 1 tcon->ses->server->vals->req_capabilities 0,4,6,8,12,14,16-648
PARAM_VALUE 1 *tcon->ses->ip_addr 0-255
PARAM_VALUE 1 *tcon->ses->preauth_sha_hash 0-255
PARAM_VALUE 1 *tcon->ses->server->cryptkey 0-255
PARAM_VALUE 1 *tcon->ses->server->fastest_cmd 0-4294967295
PARAM_VALUE 1 *tcon->ses->server->server_GUID 0-255
PARAM_VALUE 1 *tcon->ses->server->slowest_cmd 0-4294967295
PARAM_VALUE 2 path 2811-ptr_max
PARAM_VALUE 4 lookup_only 0
PARAM_VALUE 5 ret_cfid 7429024908350742528
DATA_SOURCE 0 xid r _get_xid
DATA_SOURCE 2 path r build_path_from_dentry
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &dir_fp->readdir_lock
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct inode)->i_rwsem

fs/smb/client/smb2inode.c smb2_query_path_info() -> open_cached_dir()

Type Parameter Key Value
PARAM_VALUE 1 tcon 4096-ptr_max
PARAM_VALUE 1 tcon->posix_extensions 0
PARAM_VALUE 1 tcon->ses 4096-ptr_max
PARAM_VALUE 1 tcon->ses->server 4096-ptr_max
PARAM_VALUE 1 tcon->ses->server->ops 4096-ptr_max
PARAM_VALUE 2 path 4096-ptr_max
PARAM_VALUE 2 *path 0
PARAM_VALUE 3 cifs_sb 4096-ptr_max
PARAM_VALUE 4 lookup_only 0
PARAM_VALUE 5 ret_cfid 5671110662862536704
PARAM_VALUE 5 *ret_cfid 0
BUF_SIZE 2 path (-1),2
BUF_SIZE 2 path (-1),2
DATA_SOURCE 0 xid $0
DATA_SOURCE 1 tcon $1
DATA_SOURCE 2 path $3
DATA_SOURCE 3 cifs_sb $2
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 global &cifs_mount_mutex

fs/smb/client/cached_dir.c drop_cached_dir_by_name() -> open_cached_dir()

Type Parameter Key Value
PARAM_VALUE 1 tcon->ses->server->ops->rename 2098044801683816448,5085313326206754816
PARAM_VALUE 1 tcon->ses->server->ops->rmdir 5396563262500839424,6290783084343971840
PARAM_VALUE 2 path 2811-ptr_max
PARAM_VALUE 3 cifs_sb 4096-ptr_max
PARAM_VALUE 4 lookup_only 1
PARAM_VALUE 5 ret_cfid 391390901679878144
PARAM_VALUE 5 *ret_cfid 0
DATA_SOURCE 0 xid $0
DATA_SOURCE 1 tcon $1
DATA_SOURCE 2 path $2
DATA_SOURCE 3 cifs_sb $3
RX_PATH
TASK_NOT_RUNNING

fs/smb/client/smb2ops.c smb2_is_path_accessible() -> open_cached_dir()

Type Parameter Key Value
PARAM_VALUE 1 tcon 4096-ptr_max
PARAM_VALUE 1 *tcon->ses->server->fastest_cmd 0-4294967295
PARAM_VALUE 1 *tcon->ses->server->slowest_cmd 0-4294967295
PARAM_VALUE 2 path 4096-ptr_max
PARAM_VALUE 3 cifs_sb 4096-ptr_max
PARAM_VALUE 4 lookup_only 1
PARAM_VALUE 5 ret_cfid 3627380361810649088
BUF_SIZE 2 path s32min-1285
BUF_SIZE 2 path s32min-1285
CAPPED_DATA 1 tcon 1
DATA_SOURCE 0 xid $0
DATA_SOURCE 1 tcon $1
DATA_SOURCE 2 path $3
DATA_SOURCE 3 cifs_sb $2
STR_LEN 0 xid (-1)-0
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &cifs_mount_mutex
HALF_LOCKED2 &fc->uapi_mutex

fs/smb/client/smb2ops.c smb2_query_info_compound() -> open_cached_dir()

Type Parameter Key Value
PARAM_VALUE 1 tcon 4096-ptr_max
PARAM_VALUE 1 tcon->ses 0,4096-ptr_max
PARAM_VALUE 1 tcon->ses->server->ops 4096-ptr_max
PARAM_VALUE 1 tcon->ses->server->ops->query_all_EAs 2784442507862106112,8949092441142919168
PARAM_VALUE 1 tcon->ses->server->ops->queryfs 1470061647759446016,1892238605944643584,8758392920818122752
PARAM_VALUE 1 tcon->ses->server->ops->set_EA 3006127908053323776,3346690649043267584
PARAM_VALUE 1 tcon->ses->server->vals->protocol_id 0,514,528,768,770,785
PARAM_VALUE 1 tcon->ses->server->vals->req_capabilities 0,4,6,8,12,14,16-648
PARAM_VALUE 1 *tcon->ses->server->fastest_cmd 0-4294967295
PARAM_VALUE 1 *tcon->ses->server->slowest_cmd 0-4294967295
PARAM_VALUE 2 path 4096-ptr_max
PARAM_VALUE 3 cifs_sb 4096-ptr_max
PARAM_VALUE 4 lookup_only 0
PARAM_VALUE 5 ret_cfid 1798840910202789888
PARAM_VALUE 5 *ret_cfid 0
BUF_SIZE 2 path (-1),1-2
BUF_SIZE 2 path (-1),1-2
DATA_SOURCE 0 xid $0
DATA_SOURCE 1 tcon $1
DATA_SOURCE 2 path $2 [m]
DATA_SOURCE 3 cifs_sb $9
STR_LEN 0 xid (-1),11
STR_LEN 1 tcon (-1)-0
STR_LEN 2 path (-1)-0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

fs/smb/client/smb2ops.c smb3_qfs_tcon() -> open_cached_dir()

Type Parameter Key Value
PARAM_VALUE 1 tcon 4096-ptr_max
PARAM_VALUE 1 tcon->pipe 0
PARAM_VALUE 1 tcon->ses 4096-ptr_max
PARAM_VALUE 1 tcon->ses->server 4096-ptr_max
PARAM_VALUE 1 tcon->ses->server->vals 4096-ptr_max
PARAM_VALUE 1 tcon->ses->server->vals->req_capabilities 0,4,6,8,12,14,16-532
PARAM_VALUE 1 tcon->status 0-1,3-u32max
PARAM_VALUE 1 *tcon->ses->server->fastest_cmd 0-4294967295
PARAM_VALUE 1 *tcon->ses->server->slowest_cmd 0-4294967295
PARAM_VALUE 2 path 4602998933304729600
PARAM_VALUE 3 cifs_sb 4096-ptr_max
PARAM_VALUE 4 lookup_only 0
PARAM_VALUE 5 ret_cfid 7129149468481642496
PARAM_VALUE 5 *ret_cfid 0
BUF_SIZE 1 tcon (-1),2584
BUF_SIZE 1 tcon (-1),2584
DATA_SOURCE 0 xid $0
DATA_SOURCE 1 tcon $1
DATA_SOURCE 3 cifs_sb $2
STR_LEN 0 xid 0
TERMINATED 2 path 1
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &cifs_mount_mutex
HALF_LOCKED2 &fc->uapi_mutex