函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\rcu\update.c Create Date:2022-07-27 11:18:10
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:_read_lock_held() - might we be in RCU read-side critical section?* If CONFIG_DEBUG_LOCK_ALLOC is selected, returns nonzero iff in an RCU* read-side critical section

函数原型:int rcu_read_lock_held(void)

返回类型:int

参数:

281  如果_read_lock_held_common() - might we be in RCU-sched read-side critical section?*@ret: Best guess answer if lockdep cannot be relied on* Returns true if lockdep must be ignored, in which case *ret contains* the best guess described below则返回:ret
283  返回:lock_is_held( & rcu_lock_map)
调用者
名称描述
css_from_idss_from_id - lookup css by id*@id: the cgroup id*@ss: cgroup subsys to be looked into* Returns the css if there's valid one with @id, otherwise returns NULL.* Should be called under rcu_read_lock().
____bpf_map_lookup_elemIf kernel subsystem is allowing eBPF programs to call this function,* inside its own verifier_ops->get_func_proto() callback it should return* bpf_map_lookup_elem_proto, so that verifier can properly check the arguments* Different map implementations will
____bpf_map_update_elem
____bpf_map_delete_elem
__htab_map_lookup_elemCalled from syscall or from eBPF program directly, so* arguments have to match bpf_map_lookup_elem() exactly.* The return value is adjusted by BPF instructions* in htab_map_gen_lookup().
htab_map_get_next_keyCalled from syscall
htab_map_update_elemCalled from syscall or from eBPF program
htab_lru_map_update_elem
__htab_percpu_map_update_elem
__htab_lru_percpu_map_update_elem
htab_map_delete_elemCalled from syscall or from eBPF program
htab_lru_map_delete_elem
xsk_map_lookup_elem
stack_map_get_next_key
__blkg_lookup_create__blkg_lookup_create - lookup blkg, try to create one if not there*@blkcg: blkcg of interest*@q: request_queue of interest* Lookup blkg for the @blkcg - @q pair. If it doesn't exist, try to* create one
blkg_lookup_checkPerforms queue bypass and policy enabled checks then looks up blkg.
blk_throtl_bio
find_task_by_pid_nsMust be called under rcu_read_lock().
mem_cgroup_from_idmem_cgroup_from_id - look up a memcg from a memcg id*@id: the memcg id to look up* Caller must hold rcu_read_lock().
blkg_createIf @new_blkg is %NULL, this function tries to allocate a new one as* necessary using %GFP_NOWAIT. @new_blkg is always consumed on return.
verify_new_exverify_new_ex - verifies if a new exception is allowed by parent cgroup's permissions*@dev_cgroup: dev cgroup to be tested against*@refex: new exception*@behavior: behavior of the exception's dev_cgroup* This is used to make sure a child cgroup won't have