Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\idr.c Create Date:2022-07-28 06:13:48
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:dr_replace() - replace pointer for given ID

Proto:void *idr_replace(struct idr *idr, void *ptr, unsigned long id)

Type:void

Parameter:

TypeParameterName
struct idr *idr
void *ptr
unsigned longid
293  void __rcu * * slot = NULL
296  id -= idr_base
298  entry = __radix_tree_lookup - lookup an item in a radix tree*@root: radix tree root*@index: index key*@nodep: returns node*@slotp: returns slot* Lookup and return the item at position @index in the radix* tree @root
299  If Not slot || adix_tree_tag_get - get a tag on a radix tree node*@root: radix tree root*@index: index key*@tag: tag index (< RADIX_TREE_MAX_TAGS)* Return values:* 0: tag not present or not set* 1: tag set* Note that the return value of this function may not be relied Then Return ERR_PTR( - ENOENT)
302  __radix_tree_replace - replace item in a slot*@root: radix tree root*@node: pointer to tree node*@slot: pointer to slot in @node*@item: new item to store in the slot.* For use with __radix_tree_lookup(). Caller must hold tree write locked
304  Return entry
Caller
NameDescribe
cgroup_idr_replace
mem_cgroup_alloc