Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Return the next object in the object_list. The function decrements the* use_count of the previous object and increases that of the next one.

Proto:static void *kmemleak_seq_next(struct seq_file *seq, void *v, loff_t *pos)

Type:void

Parameter:

TypeParameterName
struct seq_file *seq
void *v
loff_t *pos
1642  prev_obj = v
1643  struct kmemleak_object * next_obj = NULL
1644  obj = prev_obj
1646  ++pos
1649  If Increment the object use_count. Return 1 if successful or 0 otherwise. Note* that once an object's use_count reached 0, the RCU freeing was already* registered and the object should no longer be used. This function must be Then
1650  next_obj = obj
1651  Break
1655  Decrement 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
1656  Return next_obj