函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Shortcuts

函数原型:static inline void *kmem_cache_zalloc(struct kmem_cache *k, gfp_t flags)

返回类型:void

参数:

类型参数名称
struct kmem_cache *k
gfp_tflags
660  返回:kmem_cache_alloc(k, flags | __GFP_ZERO)
调用者
名称描述
fill_pool
debug_objects_replace_static_objectsConvert the statically allocated objects to dynamic ones:
copy_signal复制信号
alloc_uid
cred_alloc_blankAllocate blank credentials, such that the credentials can be filled in at a* later date without risk of ENOMEM.
alloc_posix_timer
create_user_nsCreate a new user namespace, deriving the creator from the user in the* passed credentials, and replacing that user with the new root user for the* new namespace.* This is called by copy_creds(), which will finish setting the target task's* credentials.
create_pid_namespace
alloc_mark
__delayacct_tsk_init
taskstats_tgid_alloc
create_cache
do_mmaphandle mapping creation for uClinux
vmap_init_free_space
vmalloc_init
alloc_rmap_item
alloc_mm_slot
bootstrapUsed for early kmem_cache structures that were allocated using* the page allocator. Allocate them properly then fix up the pointers* that may be pointing to the wrong kmem_cache structure.
alloc_mm_slot
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.
lsm_file_alloclsm_file_alloc - allocate a composite file blob*@file: the file that needs a blob* Allocate the file blob for all the modules* Returns 0, or -ENOMEM if memory can't be allocated.
lsm_inode_alloclsm_inode_alloc - allocate a composite inode blob*@inode: the inode that needs a blob* Allocate the inode blob for all the modules* Returns 0, or -ENOMEM if memory can't be allocated.
avc_xperms_decision_alloc
avc_xperms_alloc
avc_alloc_node
smk_copy_rulessmk_copy_rules - copy a rule set*@nhead: new rules header pointer*@ohead: old rules header pointer*@gfp: type of the memory for the allocation* Returns 0 on success, -ENOMEM on error
smk_set_accesssmk_set_access - add a rule to the rule list or replace an old rule*@srp: the rule to add or replace*@rule_list: the list of rules*@rule_lock: the rule list lock* Looks through the current subject/object/access list for* the subject/object pair and
__alloc_file
alloc_vfsmnt
seq_openseq_open - initialize sequential file*@file: file we initialize*@op: method table describing the sequence* seq_open() sets @file, associating it with a sequence described* by @op. @op->start() sets the iterator up and returns the first
alloc_buffer_head
ioctx_allocx_alloc* Allocates and initializes an ioctx. Returns an ERR_PTR if it failed.
fscrypt_get_encryption_info
fsverity_create_infoValidate the given fsverity_descriptor and create a new fsverity_info from* it. The signature (if present) is also checked.
locks_alloc_lockAllocate an empty lock structure.
dquot_alloc
acpi_os_acquire_object