函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:_set - set a refcount's value*@r: the refcount*@n: value to which the refcount will be set

函数原型:static inline void refcount_set(refcount_t *r, int n)

返回类型:void

参数:

类型参数名称
refcount_t *r
intn
123  atomic_set( & refs, n)
调用者
名称描述
refcount_warn_saturate
threshold_create_bank
dup_task_struct复制进程并设置栈
copy_sighand复制信号句柄
copy_signal复制信号
alloc_uid
alloc_pid分配进程句柄
refill_pi_state_cachePI code:
put_pi_stateDrops a reference to the pi_state object and frees or caches it* when the last reference is gone.
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.
alloc_cgroup_ns
audit_init_watchInitialize a watch entry.
alloc_tree
kcov_open
tracing_buffers_splice_read
bpf_trampoline_lookup
btf_parse
btf_parse_vmlinux
__perf_event_init_contextInitialize the perf_event context in a task_struct:
ring_buffer_init
rb_alloc_aux
__insert_uprobe
cgwb_bdi_init
mem_cgroup_css_online
ipc_addidpc_addid - add an ipc identifier*@ids: ipc identifier set*@new: new ipc permission set*@limit: limit for the number of used ids* Add an entry 'new' to the ipc ids idr
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
create_ipc_ns
blk_rq_init
blk_mq_rq_ctx_init
bsg_add_device
key_user_lookupGet the key quota record for a user, allocating a new record if one doesn't* already exist.
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.
de_threadThis function makes sure the current process has its own signal table,* so that flush_signal_handlers can later reset the handlers without* disturbing other processes. (Other processes might share the signal* table via the CLONE_SIGHAND option to clone().)
fscontext_alloc_log
fsnotify_alloc_groupCreate a new fsnotify_group and hold a reference for the group returned.
fsnotify_init_markNothing fancy, just initialize lists and locks and counters.
dup_userfaultfd
SYSCALL_DEFINE1
aio_get_reqaio_get_req* Allocate a slot for an aio request.* Returns NULL if no requests are free.* The refcount is initialized to 2 - one for the async op completion,* one for the synchronous code that does this.
io_get_req
create_io_worker
io_wq_managerManager thread. Tasked with creating new workers, if we need them.
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
posix_acl_initInit a fresh posix_acl
posix_acl_cloneClone an ACL.
kref_init初始化对象
reqsk_alloc
netlbl_secattr_cache_alloclbl_secattr_cache_alloc - Allocate and initialize a secattr cache*@flags: the memory allocation flags* Description:* Allocate and initialize a netlbl_lsm_cache structure. Returns a pointer* on success, NULL on failure.