函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\radix-tree.c Create Date:2022-07-27 07:10:15
Last Modify:2022-05-21 10:04:37 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:static __must_check int __radix_tree_preload(gfp_t gfp_mask, unsigned nr)

返回类型:int

参数:

类型参数名称
gfp_tgfp_mask
unsignednr
336  ret等于负ENOMEM
342  gfp_mask与等于__GFP_ACCOUNT的反
344  禁止抢占()
345  rtp等于this_cpu_ptr( & radix_tree_preloads)
346 nr小于nr循环
347  禁用抢占和中断()
348  node等于kmem_cache_alloc(Radix tree node cache., gfp_mask)
349  如果(node == NULL)则转到:out
351  禁止抢占()
352  rtp等于this_cpu_ptr( & radix_tree_preloads)
353  如果nr小于nr
356  nr自加
357  否则
361  ret等于0
362  out :
363  返回:ret
调用者
名称描述
radix_tree_preloadLoad 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
radix_tree_maybe_preloadThe same as above function, except we don't guarantee preloading happens.* We do it, if we decide it helps. On success, return zero with preemption* disabled. On error, return -ENOMEM with preemption not disabled.
idr_preloaddr_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().