Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:_set - set a refcount's value*@r: the refcount*@n: value to which the refcount will be set

Proto:static inline void refcount_set(refcount_t *r, int n)

Type:void

Parameter:

TypeParameterName
refcount_t *r
intn
123  atomic_set( & refs, n)
Caller
NameDescribe
refcount_warn_saturate
threshold_create_bank
dup_task_structReplication process and set stack
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.