Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\radix-tree.c Create Date:2022-07-28 06:13:11
Last Modify:2022-05-21 10:04:37 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:dr_preload - preload for idr_alloc()*@gfp_mask: allocation mask to use for preloading* Preallocate memory to use for the next call to idr_alloc(). This function* returns with preemption disabled. It will be enabled by idr_preload_end().

Proto:void idr_preload(gfp_t gfp_mask)

Type:void

Parameter:

TypeParameterName
gfp_tgfp_mask
1481  If Load up this CPU's radix_tree_node buffer with sufficient objects to* ensure that the addition of a single element in the tree cannot fail Then Even if we don't have any preemption, we need preempt disable/enable* to be barriers, so that we don't have things like get_user/put_user* that can cause faults and scheduling migrate into our preempt-protected* region.()
Caller
NameDescribe
irq_timings_alloc
cgroup_idr_allocIDR wrappers which synchronize using cgroup_idr_lock
bpf_map_alloc_id
bpf_prog_alloc_id
btf_alloc_id