函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:dr_find() - Return pointer for given ID

函数原型:void *idr_find(const struct idr *idr, unsigned long id)

返回类型:void

参数:

类型参数名称
const struct idr *idr
unsigned longid
174  返回:adix_tree_lookup - perform lookup operation on a radix tree*@root: radix tree root*@index: index key* Lookup the item at the position @index in the radix tree @root.* This function can be called under rcu_read_lock, however the caller
调用者
名称描述
find_pid_ns
irq_timings_next_eventq_timings_next_event - Return when the next event is supposed to arrive* During the last busy cycle, the number of interrupts is incremented* and stored in the irq_timings structure
irq_timings_free
irq_timings_alloc
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_prog_get_fd_by_id
bpf_map_get_fd_by_id
btf_get_fd_by_id
perf_init_event
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().
ipc_obtain_object_idrpc_obtain_object_idr*@ids: ipc identifier set*@id: ipc id to look for* Look for an id in the ipc ids idr and return associated ipc object.* Call inside the RCU critical section.* The ipc object is *not* locked on exit.
sysvipc_find_ipcThis routine locks the ipc structure found at least at position pos.
shm_get_statCalled with shm_ids.rwsem held as a reader
free_ipcs_ipcs - free all ipcs of one type*@ns: the namespace to remove the ipcs from*@ids: the table of ipcs to free*@free: the function called to free each individual ipc* Called for each kind of ipc when an ipc_namespace exits.
bsg_get_device
get_work_poolget_work_pool - return the worker_pool a given work was associated with*@work: the work item of interest* Pools are created and destroyed under wq_pool_mutex, and allows read* access under RCU read lock. As such, this function should be
shrink_slab_memcg
ipc_rmidpc_rmid - remove an ipc identifier*@ids: ipc identifier set*@ipcp: ipc perm structure containing the identifier to remove* ipc_ids.rwsem (as a writer) and the spinlock for this ID are held* before this function is called, and remain locked on the exit.
get_gendiskget_gendisk - get partitioning information for a given device*@devt: device to get partitioning information for*@partno: returned partition index* This function gets the structure containing partitioning* information for the given device @devt.
aa_secid_to_labelsee label for inverse aa_label_to_secid
inotify_idr_find_locked