函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\string.c Create Date:2022-07-27 06:59:08
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:ssize_t strscpy(char *dest, const char *src, size_t count)

返回类型:ssize_t

参数:

类型参数名称
char *dest
const char *src
size_tcount
182  constants等于WORD_AT_A_TIME_CONSTANTS
183  max等于count
184  res等于0
186  如果count恒等于0或WARN_ON_ONCE(count > INT_MAX)则返回:负E2BIG
201  如果dest按位或src的值按位与sizeof(long)减1则max等于0
205 max大于等于sizeof(unsignedlong)循环
208  c等于read_word_at_a_time(src + res)
209  如果判断为零
210  data等于prep_zero_mask(c, data, & constants)
211  data等于create_zero_mask(data)
213  返回:resfind_zero(data)
215  *destres的和等于c
216  res加等于sizeof(unsignedlong)
217  count减等于sizeof(unsignedlong)
218  max减等于sizeof(unsignedlong)
221 count循环
224  c等于src[res]
225  dest[res]等于c
226  如果非c则返回:res
228  res自加
229  count自减
233  如果resdest[res - 1]等于'\0'
236  返回:负E2BIG
调用者
名称描述
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
process_one_workprocess_one_work - process single work*@worker: self*@work: work to process* Process @work