Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:void *kmemdup(const void *src, size_t len, gfp_t gfp)

Type:void

Parameter:

TypeParameterName
const void *src
size_tlen
gfp_tgfp
127  p = kmalloc_track_caller(len, gfp)
128  If p Then No 3D Now!(p, src, len)
130  Return p
Caller
NameDescribe
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.