函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kmemdup - duplicate region of memory*@src: memory region to duplicate*@len: memory region length*@gfp: GFP mask to use* Return: newly allocated copy of @src or %NULL in case of error

函数原型:void *kmemdup(const void *src, size_t len, gfp_t gfp)

返回类型:void

参数:

类型参数名称
const void *src
size_tlen
gfp_tgfp
127  p等于kmalloc_track_caller(len, gfp)
128  如果p内存复制(p, src, len)
130  返回:p
调用者
名称描述
dup_iter
e820__reallocate_tablesCalled late during init, in free_initmem().* Initial e820_table and e820_table_kexec are largish __initdata arrays.* Copy them to a (usually much smaller) dynamically allocated area that is* sized precisely after the number of e820 entries.
memdup_patch
verify_and_add_patchReturn a non-negative value even if some of the checks failed so that* we can skip over the next patch. If we return a negative value, we* signal a grave error like a memory allocation has failed and the* driver cannot continue functioning normally
alloc_msi_entryalloc_msi_entry - Allocate an initialize msi_entry*@dev: Pointer to the device for which this is allocated*@nvec: The number of vectors used in this entry*@affinity: Optional pointer to an affinity mask array size of @nvec* If @affinity is not NULL then
copy_module_elfPersist Elf information about a module. Copy the Elf header,* section header table, section string table, and symtab section* index from info to mod->klp_info.
cgroup_init_cftypes
alloc_trial_cpusetalloc_trial_cpuset - allocate a trial cpuset*@cs: the cpuset that the trial cpuset duplicates
sort_idmapssort_idmaps - Sorts an array of idmap entries.* Can only be called if number of mappings exceeds UID_GID_MAP_MAX_BASE_EXTENTS.
gcov_info_dupgcov_info_dup - duplicate profiling data set*@info: profiling data set to duplicate* Return newly allocated duplicate on success, %NULL on error.
gcov_info_dupgcov_info_dup - duplicate profiling data set*@info: profiling data set to duplicate* Return newly allocated duplicate on success, %NULL on error.
gcov_fn_info_dup
gcov_info_dupgcov_info_dup - duplicate profiling data set*@info: profiling data set to duplicate* Return newly allocated duplicate on success, %NULL on error.
bpf_insn_prepare_dump
get_msid_cpin_pin
request_key_auth_newCreate an authorisation token for /sbin/request-key or whoever to gain* access to the caller's security data.
dh_data_from_key
selinux_xfrm_policy_cloneLSM hook implementation that copies security data structure from old to new* for policy cloning.
unpack_strdup
dev_exceptions_copyalled under devcgroup_mutex
dev_exception_addalled under devcgroup_mutex
add_rules
legacy_fs_context_dupDuplicate a legacy config.
__fscrypt_encrypt_symlink
posix_acl_cloneClone an ACL.
setup_userns_sysctls
get_active_key_cont
key_allockey_alloc - Allocate a key of the specified type.*@type: The type of key to allocate.*@desc: The key description to allow the key to be searched out.*@uid: The owner of the new key.*@gid: The group ID for the new key's group permissions.
vfs_dup_fs_contextvfs_dup_fc_config: Duplicate a filesystem context.*@src_fc: The context to copy.