Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Copy a NUL terminated string into a sized buffer

Proto:size_t strlcpy(char *dest, const char *src, size_t size)

Type:size_t

Parameter:

TypeParameterName
char *dest
const char *src
size_tsize
143  ret = strlen(src)
145  If size Then
146  len = If ret >= size Then size - 1 Else ret
147  No 3D Now!(dest, src, len)
148  dest[len] = '\0'
150  Return ret
Caller
NameDescribe
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
sgetfind or create a superblock
__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