函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:RCU callback to free a kmemleak_object.

函数原型:static void free_object_rcu(struct callback_head *rcu)

返回类型:void

参数:

类型参数名称
struct callback_head *rcu
468  object等于container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(rcu, structkmemleak_object, rcu)
476  hlist_del( & node)
477  kmem_cache_free(scan_area_cache, area)
479  Return the object to either the slab allocator or the memory pool.
调用者
名称描述
put_objectDecrement the object use_count. Once the count is 0, free the object using* an RCU callback. Since put_object() may be called via the kmemleak_free() ->* delete_object() path, the delayed RCU freeing ensures that there is no