函数逻辑报告

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

函数名称:长字符串复制

函数原型:size_t strlcpy(char *dest, const char *src, size_t size)

返回类型:size_t

参数:

类型参数名称
char *dest
const char *src
size_tsize
143  ret等于strlen(src)
145  如果size
146  len等于如果ret大于等于sizesize减1否则ret
147  内存复制(dest, src, len)
148  dest[len]等于'\0'
150  返回:ret
调用者
名称描述
find_cpio_datapio_data find_cpio_data - Search for files in an uncompressed cpio*@path: The directory to search for, including a slash at the end*@data: Pointer to the the cpio archive or a header inside*@len: Remaining length of the cpio based on data
ddebug_setup_query
sched_trace_cfs_rq_path
__add_preferred_console
boot_override_clocksource_override_clocksource - boot clock override*@str: override name* Takes a clocksource= boot argument and uses it* as the clocksource override name.
get_ksymbol_bpf
fill_acWrite an accounting entry for an exiting process* The acct_process() call is the workhorse of the process* accounting system. The struct acct is built here and then written* into the accounting file. This function should only be called from
task_cgroup_pathask_cgroup_path - cgroup path of a task in the first cgroup hierarchy*@task: target task*@buf: the buffer to write the path into*@buflen: the length of the buffer* Determine @task's cgroup on the first (the one with the lowest non-zero
cgroup_release_agent_write
relay_openlay_open - create a new relay channel*@base_filename: base name of files to create, %NULL for buffering only*@parent: dentry of parent directory, %NULL for root directory or buffer*@subbuf_size: size of sub-buffers*@n_subbufs: number of sub-buffers*@cb:
relay_late_setup_fileslay_late_setup_files - triggers file creation*@chan: channel to operate on*@base_filename: base name of files to create*@parent: dentry of parent directory, %NULL for root directory* Returns 0 if successful, non-zero otherwise
set_cmdline_ftrace
set_trace_boot_options
set_trace_boot_clock
__trace_find_cmdline
setup_trace_event
parse_entryCaller is responsible to free the *pentry.
set_kprobe_boot_events
traceprobe_parse_event_name@buf must has MAX_EVENT_NAME_LEN size
fetch_store_stringFetch a null-terminated string. Caller MUST set *(u32 *)dest with max* length and relative data location.
perf_event_comm_event
perf_event_mmap_event
perf_event_ksymbol
root_dev_setup
dma_pool_createdma_pool_create - Creates a pool of consistent memory blocks, for dma
tokenize_frame_descr
register_blkdevgister_blkdev - register a new block device*@major: the requested major device number [1..BLKDEV_MAJOR_MAX-1]. If*@major = 0, try to allocate any unused major number.*@name: the name of the new block device as a zero terminated string
ima_d_pathma_d_path - return a pointer to the full pathname* Attempt to return a pointer to the full pathname for use in the* IMA measurement list, IMA audit records, and auditing logs
ima_init_arch_policy
sget查找或创建超级块
__register_chrdev_regionRegister a single major with a specified minor range.* If major == 0 this function will dynamically allocate an unused major.* If major > 0 this function will attempt to reserve the range of minors* with given major.
__set_task_commThese functions flushes out all traces of the currently running executable* so that a new one can be started
setup_arch平台相关启动
cfs_rq_tg_path
parse_early_param解析命令行参数
zswap_pool_create
__elevator_changeSwitch this queue to the given IO scheduler.
request_key_auth_newCreate an authorisation token for /sbin/request-key or whoever to gain* access to the caller's security data.
sget_fcsget_fc - Find or create a superblock*@fc: Filesystem context