Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\kmemleak.c Create Date:2022-07-28 16:21:18
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:RCU callback to free a kmemleak_object.

Proto:static void free_object_rcu(struct callback_head *rcu)

Type:void

Parameter:

TypeParameterName
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.
Caller
NameDescribe
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