Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

fs/smb/server/smb_common.c ksmbd_extract_shortname() -> smbConvertToUTF16()

Type Parameter Key Value
PARAM_VALUE 1 source 4096-ptr_max
PARAM_VALUE 2 srclen 4096
PARAM_VALUE 4 mapchars 0
BUF_SIZE 1 source 13
DATA_SOURCE 0 target $2
TERMINATED 1 source 1
PREEMPT_ADD
NOCHECK_CALL
LOCK2 &dentry->d_lockref.lock
LOCK2 &pool->lock
TYPE_LOCK (struct lockref)->lock

fs/smb/server/misc.c ksmbd_convert_dir_info_name() -> smbConvertToUTF16()

Type Parameter Key Value
PARAM_VALUE 0 target 4096-ptr_max
PARAM_VALUE 4 mapchars 0
BUF_SIZE 0 target 1-4096,18446744071562067968-u64max
BUF_SIZE 0 target 1-4096,18446744071562067968-u64max
BUF_SIZE 1 source (-1),2-3
BUF_SIZE 1 source (-1),2-3
DATA_SOURCE 0 target r _kmalloc_noprof
DATA_SOURCE 3 cp $1
STR_LEN 0 target (-1),1-2
STR_LEN 1 source (-1),1-2
LOCK2 &pool->lock
HALF_LOCKED2 &dir->readdir_lock
HALF_LOCKED2 &dir_fp->readdir_lock
TYPE_LOCK (struct ksmbd_file)->readdir_lock

fs/smb/server/smb2pdu.c get_file_all_info() -> smbConvertToUTF16()

Type Parameter Key Value
PARAM_VALUE 1 source 4096-ptr_max
PARAM_VALUE 2 srclen 0-4096
PARAM_VALUE 4 mapchars 0
BUF_SIZE 1 source 1-1010103
BUF_SIZE 1 source 1-1010103
CAPPED_DATA 2 srclen 1
DATA_SOURCE 1 source r convert_to_nt_pathname
STR_LEN 0 target 0-1010102
LOCK2 &pool->lock

fs/smb/server/smb2pdu.c get_file_stream_info() -> smbConvertToUTF16()

Type Parameter Key Value
PARAM_VALUE 1 source 16,4096-ptr_max
PARAM_VALUE 2 srclen 0
PARAM_VALUE 4 mapchars 0
BUF_SIZE 1 source 0-s32max,18446744071562067968-u64max
BUF_SIZE 1 source 0-s32max,18446744071562067968-u64max
DATA_SOURCE 1 source r _kmalloc_noprof
DATA_SOURCE 2 srclen r snprintf
UNITS 2 srclen unit_byte
LOCK2 &pool->lock

fs/smb/server/smb2pdu.c get_file_stream_info() -> smbConvertToUTF16()

Type Parameter Key Value
PARAM_VALUE 1 source 4291509089244934144
PARAM_VALUE 2 srclen 7
PARAM_VALUE 4 mapchars 0
BUF_SIZE 1 source 8
STR_LEN 0 target 7
TERMINATED 1 source 1
LOCK2 &pool->lock

fs/smb/server/smb2pdu.c smb2_get_info_filesystem() -> smbConvertToUTF16()

Type Parameter Key Value
PARAM_VALUE 1 source 4803709549415628800
PARAM_VALUE 2 srclen 4096
PARAM_VALUE 4 mapchars 0
BUF_SIZE 1 source 5
STR_LEN 0 target 4
TERMINATED 1 source 1
LOCK2 &pool->lock

fs/smb/server/smb2pdu.c smb2_get_info_filesystem() -> smbConvertToUTF16()

Type Parameter Key Value
PARAM_VALUE 2 srclen 4096
PARAM_VALUE 4 mapchars 0
STR_LEN 0 target 0-1010101
LOCK2 &pool->lock