Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\slab.h Create Date:2022-07-28 06:00:32
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).

Proto:static inline void *kzalloc(size_t size, gfp_t flags)

Type:void

Parameter:

TypeParameterName
size_tsize
gfp_tflags
670  Return Allocation memory
Caller
NameDescribe
ida_alloc_rangeda_alloc_range() - Allocate an unused ID.*@ida: IDA handle.*@min: Lowest ID to allocate.*@max: Highest ID to allocate.*@gfp: Memory allocation flags.* Allocate an ID between @min and @max, inclusive. The allocated ID will
kobject_action_args
kobject_uevent_envkobject_uevent_env - send an uevent with environmental data*@kobj: struct kobject that the action is happening to*@action: action that is happening*@envp_ext: pointer to environmental data* Returns 0 if kobject_uevent_env() is completed with success or the
uevent_net_init
kobject_get_pathkobject_get_path() - Allocate memory and fill in the path for @kobj.*@kobj: kobject in question, with which to build the path*@gfp_mask: the allocation type used to allocate the path* Return: The newly allocated memory, caller must free with kfree().
kobject_createkobject_create() - Create a struct kobject dynamically.* This function creates a kobject structure dynamically and sets it up* to be a "dynamic" kobject with a default release function set up.
kset_createkset_create() - Create a struct kset dynamically
nested_table_alloc
nested_bucket_table_alloc
test_fw_run_batch_request
test_firmware_init
test_sysctl_init
kasan_bitops
test_kzallocAllocator uses a trailing node argument --------+ (e.g. kmalloc_node())* Allocator uses the gfp_t argument -----------+ | (e.g. kmalloc())* Allocator uses a special leading argument + | | (e.g. devm_kmalloc())* | | |
test_parman_create
test_debug_virtual_init
delta_create
root_create
allocate_loglevel_state
allocate_loglevel_state
kunit_alloc_and_get_resource
kunit_resource_test_init
assoc_array_insert_in_empty_treeHandle insertion into an empty tree.
assoc_array_insert_into_terminal_nodeHandle insertion into a terminal node.
assoc_array_insert_mid_shortcutHandle insertion into the middle of a shortcut.
assoc_array_insertassoc_array_insert - Script insertion of an object into an associative array*@array: The array to insert into
assoc_array_deleteassoc_array_delete - Script deletion of an object from an associative array*@array: The array to search.*@ops: The operations to use.*@index_key: The key to the object.* Precalculate and preallocate a script for the deletion of an object from an
assoc_array_clearassoc_array_clear - Script deletion of all objects from an associative array*@array: The array to clear.*@ops: The operations to use.* Precalculate and preallocate a script for the deletion of all the objects* from an associative array
assoc_array_gcassoc_array_gc - Garbage collect an associative array
codec_initdec_init - Initialize a Reed-Solomon codec*@symsize: symbol size, bits (1-8)*@gfpoly: Field generator polynomial coefficients*@gffunc: Field generator function*@fcr: first root of RS code generator polynomial, index form*@prim: primitive element to
init_rs_internal_rs_internal - Allocate rs control, find a matching codec or allocate a new one*@symsize: the symbol size (number of bits)*@gfpoly: the extended Galois field generator polynomial coefficients,* with the 0th coefficient in the low order bit
alloc_ws
init_bch_bch - initialize a BCH encoder/decoder*@m: Galois field order, should be in the range 5-15*@t: maximum error correction capability, in bits*@prim_poly: user-provided primitive polynomial (or 0 to use default)* Returns:* a newly allocated BCH control
ddebug_add_moduleAllocate a new ddebug_table for the given module* and add it to the global list.
lc_createlc_create - prepares to track objects in an active set*@name: descriptive name only used in lc_seq_printf_stats and lc_seq_dump_details*@max_pending_changes: maximum changes to accumulate until a transaction is required*@e_count: number of elements
alloc_cpu_rmapalloc_cpu_rmap - allocate CPU affinity reverse-map*@size: Number of objects to be mapped*@flags: Allocation flags e.g. %GFP_KERNEL
irq_cpu_rmap_addq_cpu_rmap_add - add an IRQ to a CPU affinity reverse-map*@rmap: The reverse-map*@irq: The IRQ number* This adds an IRQ affinity notifier that will update the reverse-map* automatically.* Must be called in process context, after the IRQ is allocated but
mpihelp_mul_karatsuba_case
digsig_verify_rsaRSA Signature verification with public key
digsig_verifydigsig_verify() - digital signature verification with public key*@keyring: keyring to search key in*@sig: digital signature*@siglen: length of the signature*@data: data*@datalen: length of the data* Returns 0 on success, -EINVAL otherwise
parman_createparman_create - creates a new parman instance*@ops: caller-specific callbacks*@priv: pointer to a private data passed to the ops* Note: all locking must be provided by the caller.* Each parman instance manages an array area with chunks of entries
objagg_obj_create
objagg_createbjagg_create - creates a new objagg instance*@ops: user-specific callbacks*@objagg_hints: hints, can be NULL*@priv: pointer to a private data passed to the ops* Note: all locking must be provided by the caller
objagg_stats_getbjagg_stats_get - obtains stats of the objagg instance*@objagg: objagg instance* Note: all locking must be provided by the caller.* The returned structure contains statistics of all object* currently in use, ordered by following rules:
objagg_hints_node_create
objagg_tmp_graph_create
objagg_hints_getbjagg_hints_get - obtains hints instance*@objagg: objagg instance*@opt_algo_type: type of hints finding algorithm* Note: all locking must be provided by the caller.* According to the algo type, the existing objects of objagg instance
objagg_hints_stats_getbjagg_hints_stats_get - obtains stats of the hints instance*@objagg_hints: hints instance* Note: all locking must be provided by the caller.* The returned structure contains statistics of all objects* currently in use, ordered by following rules:
list_test_list_init
mce_device_createPer CPU device init. All of the CPUs still share the same bank device:
allocate_threshold_blocks
threshold_create_bank
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
__rdtgroup_move_task
rdt_init_fs_context
mkdir_rdt_prepare
pseudo_lock_cstates_constrainpseudo_lock_cstates_constrain - Restrict cores from entering C6* To prevent the cache from being affected by power management entering* C6 has to be avoided
pseudo_lock_initpseudo_lock_init - Initialize a pseudo-lock region*@rdtgrp: resource group to which new pseudo-locked region will belong* A pseudo-locked region is associated with a resource group. When this* association is created the pseudo-locked region is initialized
pseudo_lock_region_allocpseudo_lock_region_alloc - Allocate kernel memory that will be pseudo-locked*@plr: pseudo-lock region* Initialize the details required to set up the pseudo-locked region and* allocate the contiguous memory that will be pseudo-locked to the cache.
alloc_ioapic_saved_registers
mp_irqdomain_alloc
build_uv_gr_tableBuild GAM range lookup table:
uv_system_init_hub
bzImage64_load
arch_prepare_optimized_kprobeCopy replacing target instructions* Target instructions MUST be relocatable (checked inside)* This is called when new aggr(opt)probe is allocated or reused.
do_sys_vm86
kvm_async_pf_task_wake
alloc_resource
resource_list_create_entry
call_usermodehelper_setupall_usermodehelper_setup - prepare to call a usermode helper*@path: path to usermode executable*@argv: arg vector for process*@envp: environment for process*@gfp_mask: gfp mask for memory allocation*@cleanup: a cleanup function*@init: an init
call_usermodehelper_setup_file
alloc_workqueue_attrsalloc_workqueue_attrs - allocate a workqueue_attrs* Allocate a new workqueue_attrs, initialize with default settings and* return it.* Return: The allocated new workqueue_attr on success. %NULL on failure.
apply_wqattrs_prepareallocate the attrs and pwqs for later installation
alloc_workqueue
kthread
__kthread_create_worker
async_schedule_node_domainasync_schedule_node_domain - NUMA specific version of async_schedule_domain*@func: function to execute asynchronously*@data: data pointer to pass to the function*@node: NUMA node that we want to schedule this on or close to*@domain: the domain
get_ucounts
sched_init
alloc_rootdomain
sched_init_numa
autogroup_create
cpuacct_css_allocCreate a new CPU accounting group
sugov_policy_alloc
sugov_tunables_alloc
pm_qos_power_open
create_mem_extentsreate_mem_extents - Create a list of memory extents.*@list: List to put the extents into.*@gfp_mask: Mask to use for memory allocations.* The extents represent contiguous ranges of PFNs.
create_basic_memory_bitmapsreate_basic_memory_bitmaps - Create bitmaps to hold basic page information
swsusp_extents_insert
get_swap_reader
wakelock_lookup_add
em_create_pd
irq_set_percpu_devid_partition
irq_setup_forced_threading
request_threaded_irqquest_threaded_irq - allocate an interrupt line*@irq: Interrupt line to allocate*@handler: Function to be called when the IRQ occurs
request_nmiquest_nmi - allocate an interrupt line for NMI delivery*@irq: Interrupt line to allocate*@handler: Function to be called when the IRQ occurs
__request_percpu_irq__request_percpu_irq - allocate a percpu interrupt line*@irq: Interrupt line to allocate*@handler: Function to be called when the IRQ occurs
request_percpu_nmiquest_percpu_nmi - allocate a percpu interrupt line for NMI delivery*@irq: Interrupt line to allocate*@handler: Function to be called when the IRQ occurs
irq_alloc_generic_chipq_alloc_generic_chip - Allocate a generic chip and initialize it*@name: Name of the irq chip*@num_ct: Number of irq_chip_type instances associated with this*@irq_base: Interrupt base nr for this chip*@reg_base: Register base address (virtual)*@handler:
__irq_alloc_domain_generic_chips__irq_alloc_domain_generic_chip - Allocate generic chips for an irq domain*@d: irq domain for which to allocate chips*@irqs_per_chip: Number of interrupts each chip handles (max 32)*@num_ct: Number of irq_chip_type instances associated with this*@name:
__irq_domain_alloc_fwnodeq_domain_alloc_fwnode - Allocate a fwnode_handle suitable for* identifying an irq domain*@type: Type of irqchip_fwnode
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
irq_alloc_matrixq_alloc_matrix - Allocate a irq_matrix structure and initialize it*@matrix_bits: Number of matrix bits must be <= IRQ_MATRIX_BITS*@alloc_start: From which bit the allocation search starts*@alloc_end: At which bit the allocation search ends, i
klp_alloc_object_dynamic
klp_alloc_func_nop
klp_patch_func
__klp_shadow_get_or_alloc
dma_init_coherent_memory
dma_debug_add_bus
profile_init
refill_pi_state_cachePI code:
acct_on
do_kimage_alloc_init
crash_shrink_memory
kexec_calculate_store_digests
elf_read_phdrslf_read_phdrs - read the program headers from the buffer* This function assumes that the program header table was checked for sanity.* Use elf_is_ehdr_sane() if it wasn't.
allocate_cgrp_cset_linksallocate_cgrp_cset_links - allocate cgrp_cset_links*@count: the number of links to allocate*@tmp_links: list_head the allocated links are put on* Allocate @count cgrp_cset_link structures and chain them on @tmp_links* through ->cset_link
find_css_setd_css_set - return a new css_set with one cgroup updated*@old_cset: the baseline css_set*@cgrp: the cgroup to be updated* Return a new css_set that's equivalent to @old_cset, but with @cgrp* substituted into the appropriate hierarchy.
cgroup_init_fs_contextInitialise the cgroup filesystem creation/reconfiguration context. Notably,* we select the namespace we're going to use.
__cgroup_procs_start
cgroup_createThe returned cgroup is fully initialized including its control mask, but* it isn't associated with its kernfs_node and doesn't have the control* mask applied.
alloc_cgroup_ns
cgroup_pidlist_find_created the appropriate pidlist for our purpose (given procs vs tasks)* returns with the lock on that pidlist already held, and takes care* of the use count, or returns NULL with no locks held if we're out of* memory.
cgroup1_root_to_useThe guts of cgroup1 mount - find or create cgroup_root to use
freezer_css_alloc
pids_css_alloc
get_cg_rpool_locked
rdmacg_css_alloc
cpuset_migrate_mm
cpuset_css_allocpuset_css_alloc - allocate a cpuset css* cgrp: control group that the new cpuset will be part of
debug_css_alloc
auditd_setauditd_set - Set/Reset the auditd connection state*@pid: auditd PID*@portid: auditd netlink portid*@net: auditd network namespace pointer* Description:* This function will obtain and drop network namespace references as* necessary
audit_init_entryInitialize an audit filterlist entry.
grow_tree_refs
audit_alloc_context
audit_alloc_name
audit_signal_info_syscallaudit_signal_info_syscall - record signal info for syscalls*@t: task being signaled* If the audit subsystem is being terminated, record the task (pid)* and uid that is doing that.
audit_init_parentInitialize a parent watch entry.
audit_init_watchInitialize a watch entry.
audit_alloc_mark
alloc_chunk
new_nodeCreate a new node and associated debugfs entry. Needs to be called with* node_lock held.
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_iter_newgcov_iter_new - allocate and initialize profiling data iterator*@info: profiling data set to be iterated* Return file iterator on success, %NULL otherwise.
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_iter_newgcov_iter_new - allocate and initialize profiling data iterator*@info: profiling data set to be iterated* Return file iterator on success, %NULL otherwise.
llvm_gcov_init
llvm_gcda_emit_function
gcov_iter_newgcov_iter_new - allocate and initialize profiling data iterator*@info: profiling data set to be iterated* Return file iterator on success, %NULL otherwise.
kcov_open
alloc_aggr_kprobeAllocate new optimized_kprobe and try to prepare optimized instructions
fei_attr_new
relay_alloc_page_arrayallocate an array of pointers of struct page
relay_create_buflay_create_buf - allocate and initialize a channel buffer*@chan: the relay channel* Returns channel buffer if successful, %NULL otherwise.
relay_create_buf_file
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:
__ring_buffer_alloc__ring_buffer_alloc - allocate a new ring_buffer*@size: the size in bytes per cpu that is needed.*@flags: attributes to set for the ring buffer.* Currently the only flag that is available is the RB_FL_OVERWRITE* flag
__tracing_open
tracing_open_pipe
get_tracing_log_err
tracing_buffers_open
tracing_buffers_splice_read
trace_array_create
insert_stat
register_stat_tracer
tracing_map_array_alloc
tracing_map_elt_alloc
tracing_map_createracing_map_create - Create a lock-free map and element pool*@map_bits: The size of the map (2 ** map_bits)*@key_size: The size of the key for the map in bytes*@ops: Optional client-defined tracing_map_ops instance*@private_data: Client data associated
create_sort_entry
allocate_ftrace_ops
mmio_pipe_open
graph_trace_open
system_tr_open
create_new_subsystem
parse_predCalled when a predicate is encountered by predicate_parse()
process_system_preds
create_filter_start
event_trigger_callbackvent_trigger_callback - Generic event_command @func implementation*@cmd_ops: The command ops, used for trigger registration*@file: The trace_event_file associated with the event*@glob: The raw string used to register the trigger*@cmd: The cmd portion of
event_enable_trigger_func
trace_alloc_entry
track_data_alloc
parse_synth_field
alloc_synth_tracepoint
alloc_synth_event
save_hist_vars
parse_hist_trigger_attrs
hist_trigger_elt_data_alloc
expr_str
create_hist_field
find_synthetic_field_var
create_field_var_histreate_field_var_hist - Automatically create a histogram and var for a field*@target_hist_data: The target hist trigger*@subsys_name: Optional subsystem name*@event_name: Optional event name*@field_name: The name of the field (and the resulting variable)*
create_var
create_field_var
track_data_parse
onmatch_parse
create_hist_data
event_hist_trigger_func
bpf_event_notify
alloc_trace_kprobeAllocate new trace_probe and initialize it (including kprobes).
__trace_probe_log_err
trace_probe_init
alloc_trace_uprobeAllocate new trace_uprobe and initialize it (including uprobes).
bpf_prog_alloc_no_stats
bpf_prog_array_alloc
bpf_raw_tracepoint_open
copy_verifier_state
push_stack
check_func_call
is_state_visited
do_check
bpf_check
map_iter_alloc
bpf_init_fs_contextSet up the filesystem mount context.
htab_map_alloc
prog_array_map_alloc
bpf_event_entry_gen
trie_alloc
bpf_map_meta_alloc
bpf_trampoline_lookup
btf_parse
btf_parse_vmlinux
dev_map_alloc
cpu_map_alloc
xsk_map_node_alloc
bpf_prog_offload_init
bpf_map_offload_map_alloc
bpf_offload_dev_netdev_register
bpf_offload_dev_create
sockopt_alloc_buf
alloc_perf_context
find_get_contextReturns a matching context with refcount and pincount.
perf_read_group
swevent_hlist_get_cpu
pmu_dev_alloc
perf_event_allocAllocate and initialize an event structure
inherit_eventInherit an event from parent task to child task.* Returns:* - valid pointer on success* - NULL for orphaned events* - IS_ERR() on error
rb_alloc
alloc_callchain_buffers
delayed_uprobe_add
alloc_uprobe
get_utaskAllocate a uprobe_task object for the task if if necessary.* Called when the thread hits a breakpoint.* Returns:* - pointer to new uprobe_task on success* - NULL otherwise
dup_utask
padata_alloc_pdAllocate and initialize the internal cpumask dependend resources.
padata_allocpadata_alloc - allocate and initialize a padata instance and specify* cpumasks for serial and parallel workers
padata_alloc_shellpadata_alloc_shell - Allocate and initialize padata shell.*@pinst: Parent padata_instance object.
jump_label_add_module
prealloc_shrinkerAdd a shrinker callback to be called from the vm.
cgwb_bdi_init
pcpu_mem_zallocpcpu_mem_zalloc - allocate memory*@size: bytes to allocate*@gfp: allocation flags* Allocate @size bytes. If @size is smaller than PAGE_SIZE,* kzalloc() is used; otherwise, the equivalent of vzalloc() is used.
zswap_pool_create
zswap_frontswap_init
hugepage_new_subpool
section_activate
__mmu_notifier_registerSame as mmu_notifier_register but here the caller must hold the mmap_sem in* write mode. A NULL mn signals the notifier is being registered for itree* mode.
memcg_write_event_controlDO NOT USE IN NEW FILES.* Parse input and register new cgroup event handler.* Input must be in format ' '.* Interpretation of args is defined by control file implementation.
mem_cgroup_alloc
vmpressure_register_eventvmpressure_register_event() - Bind vmpressure notifications to an eventfd*@memcg: memcg that is interested in vmpressure notifications*@eventfd: eventfd context to link notifications with*@args: event arguments (pressure level threshold, optional mode)*
hugetlb_cgroup_css_alloc
kmemleak_test_initSome very simple testing. This function needs to be extended for* proper testing.
zbud_create_poolzbud_create_pool() - create a new zbud pool*@gfp: gfp flags when allocating the zbud pool structure*@ops: user-defined operations for the zbud pool* Return: pointer to the new zbud pool or NULL if the metadata allocation* failed.
zs_create_poolzs_create_pool - Creates an allocation pool to work from.*@name: pool name to be created* This function must be called before anything when using* the zsmalloc allocator.* On success, a pointer to the newly created pool is returned,* otherwise NULL.
z3fold_create_poolz3fold_create_pool() - create a new z3fold pool*@name: pool name*@gfp: gfp flags when allocating the z3fold pool structure*@ops: user-defined operations for the z3fold pool* Return: pointer to the new z3fold pool or NULL if the metadata allocation* failed.
cma_alloc_mem
get_undo_listIf the task doesn't already have a undo_list, then allocate one* here. We guarantee there is only one thread using this undo list,* and current is THE ONE* If this allocation and assignment succeeds, but later
find_alloc_undod_alloc_undo - lookup (and if not present create) undo array*@ns: namespace*@semid: semaphore array id* The function looks up (and if not present creates) the undo structure.* The size of the undo structure depends on the size of the semaphore
do_shmatFix shmaddr, allocate descriptor, map shm, add attach descriptor to lists.* NOTE! Despite the name, this is NOT a direct system call entrypoint. The* "raddr" thing points to kernel space, and there has to be a wrapper around* this.
mqueue_init_fs_context
create_ipc_ns
blk_check_plugged
blk_mq_alloc_ctxsAll allocations will be freed in release handler of q->mq_kobj
disk_alloc_events
add_partitionMust be called either with bd_mutex held, before a disk can be opened or* after all disk users are gone.
__badblocks_init
allocate_partitions
find_valid_gptd_valid_gpt() - Search disk for valid GPT headers and PTEs*@state: disk parsed partitions*@gpt: GPT header ptr, filled on return.*@ptes: PTEs ptr, filled on return.* Description: Returns 1 if valid, 0 on error.
sg_io
sg_scsi_ioctlsg_scsi_ioctl -- handle deprecated SCSI_IOCTL_SEND_COMMAND ioctl*@q: request queue to send scsi commands down*@disk: gendisk to operate on (option)*@mode: mode used to open the file through which the ioctl has been* submitted*@sic: userspace structure
bsg_scsi_fill_hdr
bsg_alloc_device
bsg_map_buffer
bsg_init_rqalled right after the request is allocated for the request_queue
bsg_setup_queuesg_setup_queue - Create and add the bsg hooks so we can receive requests*@dev: device to attach bsg device to*@name: device to give bsg device*@job_fn: bsg job handler*@timeout: timeout handler function pointer*@dd_job_size: size of LLD data needed for
blkcg_css_alloc
blk_iolatency_init
blk_iocost_init
ioc_cpd_alloc
bfq_weights_tree_addIf the weight-counter tree passed as input contains no counter for* the weight of the input queue, then add that counter; otherwise just* increment the existing counter.* Note that weight-counter trees contain few nodes in mostly symmetric* scenarios
parse_subpart
parse_parts
wbt_init
opal_save
keyring_restriction_alloc
request_key_auth_newCreate an authorisation token for /sbin/request-key or whoever to gain* access to the caller's security data.
__keyctl_dh_compute
big_key_alloc_bufferAllocate a buffer consisting of a set of pages with a virtual mapping* applied over them.
trusted_options_alloc
trusted_payload_alloc
get_derived_keyDerive authentication/encryption key from trusted key
encrypted_key_allocAllocate memory for decrypted key and datablob.
lsm_cred_alloclsm_cred_alloc - allocate a composite cred blob*@cred: the cred that needs a blob*@gfp: allocation type* Allocate the cred blob for all the modules* Returns 0, or -ENOMEM if memory can't be allocated.
lsm_task_alloclsm_task_alloc - allocate a composite task blob*@task: the task that needs a blob* Allocate the task blob for all the modules* Returns 0, or -ENOMEM if memory can't be allocated.
lsm_ipc_alloclsm_ipc_alloc - allocate a composite ipc blob*@kip: the ipc that needs a blob* Allocate the ipc blob for all the modules* Returns 0, or -ENOMEM if memory can't be allocated.
lsm_msg_msg_alloclsm_msg_msg_alloc - allocate a composite msg_msg blob*@mp: the msg_msg that needs a blob* Allocate the ipc blob for all the modules* Returns 0, or -ENOMEM if memory can't be allocated.
superblock_alloc_security
selinux_add_opt
selinux_fs_context_dup
selinux_sk_alloc_security
selinux_tun_dev_alloc_security
selinux_key_alloc
selinux_fs_info_create
sel_open_policy
sel_write_validatetrans
sel_write_accessRemaining nodes use transaction based IO methods like nfsd/nfsctl.c
sel_write_create
sel_write_relabel
sel_write_user
sel_write_member
sel_netif_sid_slowsel_netif_sid_slow - Lookup the SID of a network interface using the policy*@ns: the network namespace*@ifindex: the network interface*@sid: interface SID* Description:* This function determines the SID of a network interface by quering the
sel_netnode_sid_slowsel_netnode_sid_slow - Lookup the SID of a network address using the policy*@addr: the IP address*@family: the address family*@sid: node SID* Description:* This function determines the SID of a network address by quering the* security policy
sel_netport_sid_slowsel_netport_sid_slow - Lookup the SID of a network address using the policy*@protocol: protocol*@pnum: port*@sid: port SID* Description:* This function determines the SID of a network port by quering the security* policy
sel_ib_pkey_sid_slowsel_ib_pkey_sid_slow - Lookup the SID of a pkey using the policy*@subnet_prefix: subnet prefix*@pkey_num: pkey number*@sid: pkey SID* Description:* This function determines the SID of a pkey by querying the security* policy
smk_fetchsmk_fetch - Fetch the smack label from a file.*@name: type of the label (attribute)*@ip: a pointer to the inode*@dp: a pointer to the dentry* Returns a pointer to the master list entry for the Smack label,
smk_copy_relabelsmk_copy_relabel - copy smk_relabel labels list*@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
smack_sb_alloc_securitysmack_sb_alloc_security - allocate a superblock blob*@sb: the superblock getting the blob* Returns 0 on success or -ENOMEM on error.
smack_add_opt
smack_fs_context_dupsmack_fs_context_dup - Duplicate the security data on fs_context duplication*@fc: The new filesystem context.*@src_fc: The source filesystem context being duplicated.* Returns 0 on success or -ENOMEM on error.
smack_sk_alloc_securitysmack_sk_alloc_security - Allocate a socket blob*@sk: the socket*@family: unused*@gfp_flags: memory allocation flags* Assign Smack pointers to current* Returns 0 on success, -ENOMEM is there's no memory
smk_ipv6_port_labelsmk_ipv6_port_label - Smack port access table management*@sock: socket*@address: address* Create or update the port list entry
smk_parse_smacksmk_parse_smack - parse smack label from a text string*@string: a text string that might contain a Smack label*@len: the maximum size, or zero if it is NULL terminated.* Returns a pointer to the clean label or an error code.
smk_import_entrysmk_import_entry - import a label, return the list entry*@string: a text string that might be a Smack label*@len: the maximum size, or zero if it is NULL terminated
smk_write_net4addrsmk_write_net4addr - write() for /smack/netlabel*@file: file pointer, not actually used*@buf: where to get the data from*@count: bytes sent*@ppos: where to start* Accepts only one net4addr per write call
smk_write_net6addrsmk_write_net6addr - write() for /smack/netlabel*@file: file pointer, not actually used*@buf: where to get the data from*@count: bytes sent*@ppos: where to start* Accepts only one net6addr per write call
smk_parse_label_listsmk_parse_label_list - parse list of Smack labels, separated by spaces*@data: the string to parse*@private: destination list* Returns zero on success or error code, as appropriate
tomoyo_print_bprmmoyo_print_bprm - Print "struct linux_binprm" for auditing
tomoyo_init_logmoyo_init_log - Allocate buffer for audit logs
tomoyo_write_log2moyo_write_log2 - Write an audit log.*@r: Pointer to "struct tomoyo_request_info".*@len: Buffer size needed for @fmt and @args.*@fmt: The printf()'s format string.*@args: va_list structure for @fmt.* Returns nothing.
tomoyo_assign_profilemoyo_assign_profile - Create a new profile.*@ns: Pointer to "struct tomoyo_policy_namespace".*@profile: Profile number to create.* Returns pointer to "struct tomoyo_profile" on success, NULL otherwise.
tomoyo_read_querymoyo_read_query - Read access requests which violated policy in enforcing mode.*@head: Pointer to "struct tomoyo_io_buffer".
tomoyo_open_controlmoyo_open_control - open() for /sys/kernel/security/tomoyo/ interface.*@type: Type of interface.*@file: Pointer to "struct file".* Returns 0 on success, negative value otherwise.
tomoyo_write_controlmoyo_write_control - write() for /sys/kernel/security/tomoyo/ interface.*@head: Pointer to "struct tomoyo_io_buffer".*@buffer: Pointer to buffer to read from.*@buffer_len: Size of @buffer.* Returns @buffer_len on success, negative value otherwise.
tomoyo_scan_bprmmoyo_scan_bprm - Scan "struct linux_binprm".*@ee: Pointer to "struct tomoyo_execve".*@argc: Length of @argc.*@argv: Pointer to "struct tomoyo_argv".*@envc: Length of @envp.*@envp: Poiner to "struct tomoyo_envp".* Returns true on success, false otherwise.
tomoyo_get_conditionmoyo_get_condition - Parse condition part.*@param: Pointer to "struct tomoyo_acl_param".* Returns pointer to "struct tomoyo_condition" on success, NULL otherwise.
tomoyo_assign_namespacemoyo_assign_namespace - Create a new namespace.*@domainname: Name of namespace to create.* Returns pointer to "struct tomoyo_policy_namespace" on success,* NULL otherwise.* Caller holds tomoyo_read_lock().
tomoyo_environmoyo_environ - Check permission for environment variable names.*@ee: Pointer to "struct tomoyo_execve".* Returns 0 on success, negative value otherwise.
tomoyo_find_next_domainmoyo_find_next_domain - Find a domain.*@bprm: Pointer to "struct linux_binprm".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock().
tomoyo_dump_pagemoyo_dump_page - Dump a page to buffer.*@bprm: Pointer to "struct linux_binprm".*@pos: Location to dump.*@dump: Poiner to "struct tomoyo_page_dump".* Returns true on success, false otherwise.
tomoyo_commit_okmoyo_commit_ok - Check memory quota.*@data: Data to copy from.*@size: Size in byte.* Returns pointer to allocated memory on success, NULL otherwise.*@data is zero-cleared on success.* Caller holds tomoyo_policy_lock mutex.
tomoyo_get_namemoyo_get_name - Allocate permanent memory for string data.*@name: The string to store into the permernent memory.* Returns pointer to "struct tomoyo_path_info" on success, NULL otherwise.
tomoyo_encode2moyo_encode2 - Encode binary string to ascii string.*@str: String in binary format.*@str_len: Size of @str in byte.* Returns pointer to @str in ascii format on success, NULL otherwise.* This function uses kzalloc(), so caller must kfree() if this function
ns_revision_open
aa_audit_rule_init
aa_dfa_unpackaa_dfa_unpack - unpack the binary tables of a serialized dfa*@blob: aligned serialized stream of data to unpack (NOT NULL)*@size: size of data to unpack*@flags: flags controlling what type of accept tables are acceptable
aa_alloc_profileaa_alloc_profile - allocate, initialize and return a new profile*@hname: name of the profile (NOT NULL)*@gfp: allocation type* Returns: refcount profile or NULL on failure
aa_loaddata_alloc
unpack_profilepack_profile - unpack a serialized profile*@e: serialized data extent information (NOT NULL)* NOTE: unpack profile sets audit struct if there is a failure
aa_load_ent_alloc
apparmor_sk_alloc_securityapparmor_sk_alloc_security - allocate and attach the sk_security field
alloc_nsalloc_ns - allocate, initialize and return a new namespace*@prefix: parent namespace name (MAYBE NULL)*@name: a preallocated name (NOT NULL)* Returns: refcounted namespace or NULL on failure.
aa_alloc_proxy
aa_label_allocaa_label_alloc - allocate a label with a profile vector of @size length*@size: size of profile vector in the label*@proxy: proxy to use OR null if to allocate a new one*@gfp: memory allocation type* Returns: new label* else NULL if failed
aa_calc_hash
aa_calc_profile_hash
devcgroup_css_allocalled from kernel/cgroup.c with cgroup_lock() held.
integrity_init_keyring
ima_calc_file_hash_tfm
ima_alloc_init_templatema_alloc_init_template - create and initialize a new template entry
ima_audit_measurement
ima_parse_add_rulema_parse_add_rule - add a rule to ima_policy_rules*@rule - ima measurement policy rule* Avoid locking by allowing just one writer at a time in ima_write_policy()* Returns the length of the rule parsed, an error code on failure
restore_template_fmt
ima_restore_template_data
ima_write_template_field_data
ima_read_modsigma_read_modsig - Read modsig from buf.* Return: 0 on success, error code otherwise.
ima_mok_initAllocate the IMA blacklist keyring
evm_inode_init_securityvm_inode_init_security - initializes security.evm
alloc_superalloc_super - create new superblock*@type: filesystem type superblock should belong to*@flags: the mount flags*@user_ns: User namespace for the super_block* Allocates and initializes a new &struct super_block. alloc_super()
__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.
cdev_allocdev_alloc() - allocate a cdev structure* Allocates and returns a cdev structure, or NULL on failure.
__do_execve_filesys_execve() executes a new program.
alloc_pipe_info
getname_flags
alloc_mnt_ns
__seq_open_private
init_pseudoCommon helper for pseudo-filesystems (sockfs, pipefs, bdev - stuff that* will never be mountable)
alloc_fs_contextalloc_fs_context - Create a filesystem context.*@fs_type: The filesystem type.*@reference: The dentry from which this one derives (or NULL)*@sb_flags: Filesystem/superblock flags (SB_*)*@sb_flags_mask: Applicable members of @sb_flags
legacy_init_fs_context
fscontext_alloc_log
fsnotify_alloc_groupCreate a new fsnotify_group and hold a reference for the group returned.
ep_alloc
SYSCALL_DEFINE2
userfaultfd_unmap_prep
ioctx_add_table
io_ring_ctx_alloc
io_wq_create
add_new_master_keyAllocate a new fscrypt_master_key which contains the given secret, set it as* the payload of a new 'struct key' of type fscrypt, and link the 'struct key'* into the given keyring. Synchronized by fscrypt_add_key_mutex.
fscrypt_get_direct_keyPrepare to encrypt directly using the master key in the given mode
enable_verity
fsverity_prepare_hash_statesverity_prepare_hash_state() - precompute the initial hash state*@alg: hash algorithm*@salt: a salt which is to be prepended to all data to be hashed*@salt_size: salt size in bytes, possibly 0* Return: NULL if the salt is empty, otherwise the kmalloc()'ed
fsverity_verify_signaturesverity_verify_signature() - check a verity file's signature* If the file's fs-verity descriptor includes a signature of the file* measurement, verify it against the certificates in the fs-verity keyring
elf_fdpic_map_fileload the appropriate binary image (executable or interpreter) into memory* - we assume no MMU is available* - if no other PIC bits are set in params->hdr->e_flags* - we assume that the LOADable segments in the binary are independently relocatable* - we
mb_cache_createmb_cache_create - create cache*@bucket_bits: log2 of the hash table size* Create cache for keys with 2^bucket_bits hash entries.
new_pts_fs_info
ramfs_init_fs_context
alloc_part_info
alloc_ts_config