Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\string.c Create Date:2022-07-28 06:00:35
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:strscpy - Copy a C-string into a sized buffer*@dest: Where to copy the string to*@src: Where to copy the string from*@count: Size of destination buffer* Copy the string, or as much of it as fits, into the dest buffer. The

Proto:ssize_t strscpy(char *dest, const char *src, size_t count)

Type:ssize_t

Parameter:

TypeParameterName
char *dest
const char *src
size_tcount
182  constants = WORD_AT_A_TIME_CONSTANTS
183  max = count
184  res = 0
186  If count == 0 || WARN_ON_ONCE(count > INT_MAX) Then Return -E2BIG
201  If (dest | src) & sizeof(long) - 1 Then max = 0
205  When max >= sizeof(unsignedlong) cycle
208  c = read_word_at_a_time(src + res)
213  Return res + find_zero(data)
215  *(dest + res) = c
216  res += sizeof(unsignedlong)
217  count -= sizeof(unsignedlong)
218  max -= sizeof(unsignedlong)
221  When count cycle
224  c = src[res]
225  dest[res] = c
226  If Not c Then Return res
228  res++
229  count--
233  If res Then dest[res - 1] = '\0'
236  Return -E2BIG
Caller
NameDescribe
strscpy_padstrscpy_pad() - Copy a C-string into a sized buffer*@dest: Where to copy the string to*@src: Where to copy the string from*@count: Size of destination buffer* Copy the string, or as much of it as fits, into the dest buffer. The
wq_worker_commsed to show worker information through /proc/PID/{comm,stat,status}
cgroup_file_name
init_cgroup_root
gdbstub_state
kdb_getstrkdb_getstr* Print the prompt string and read a command from the* input device.* Parameters:* buffer Address of buffer to receive command* bufsize Size of buffer in bytes* prompt Pointer to string to use as prompt string* Returns:
kallsyms_symbol_completekallsyms_symbol_complete* Parameters:* prefix_name prefix of a symbol name to lookup* max_len maximum length that can be returned* Returns:* Number of symbols which match the given prefix
kallsyms_symbol_nextkallsyms_symbol_next* Parameters:* prefix_name prefix of a symbol name to lookup* flag 0 means search from the head, 1 means continue search.* buf_size maximum length that can be written to prefix_name* buffer* Returns:
seccomp_names_from_actions_logged
trace_event_raw_event_synth
__update_field_vars
sysctl_cpy_dir
____bpf_sysctl_get_name