函数逻辑报告

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

函数名称:_read - get a refcount's value*@r: the refcount* Return: the refcount's value

函数原型:static inline unsigned int refcount_read(const refcount_t *r)

返回类型:unsigned int

参数:

类型参数名称
const refcount_t *r
134  返回:atomic_read( & refs)
调用者
名称描述
__put_task_struct
check_unshare_flagsCheck constraints on flags passed to the unshare system call.
attach_to_pi_stateValidate that the existing waiter has a pi_state and sanity check* the pi_state against the user space value. If correct, attach to* it.
current_css_set_read
current_css_set_refcount_read
cgroup_css_links_read
audit_tree_freeing_mark
buffer_pipe_buf_get
perf_mmap_closeA buffer can be mmap()ed multiple times; either directly through the same* event, or through other events by use of perf_event_set_output().* In order to undo the VM accounting done by perf_mmap() we need to destroy
perf_event_free_taskFree a context as created by inheritance by perf_event_init_task() below,* used by fork() in case of fail.* Even though the task has never lived, the context and events have been* exposed through the child_list, so we must take care tearing it all down.
key_garbage_collectorReaper for unused keys.
key_linkkey_link - Link a key to a keyring*@keyring: The keyring to make the link in
request_key_auth_newCreate an authorisation token for /sbin/request-key or whoever to gain* access to the caller's security data.
proc_keys_show
proc_key_users_show
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().)
fsnotify_get_mark
fsnotify_detach_markMark mark as detached, remove it from group list
inotify_idr_find_locked
inotify_remove_from_idrRemove the mark from the idr (if present) and drop the reference* on the mark because it was in the idr.
refcount_add_not_zero_add_not_zero - add a value to a refcount unless it is 0*@i: the value to add to the refcount*@r: the refcount* Will saturate at REFCOUNT_SATURATED and WARN.* Provides no memory ordering, it is assumed the caller has guaranteed the
kref_read
skb_unrefskb_unref - decrement the skb's reference count*@skb: buffer* Returns true if we can free the skb.
skb_fclone_busy价差fclone忙
skb_shared缓存是共享的?
sk_del_node_init
sk_nulls_del_node_init_rcu
sk_wmem_alloc_get返回写分配
sock_wspace
sock_writeableDefault write policy as shown to user space via poll/select/SIGIO
reqsk_free