函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static void *kmemleak_seq_next(struct seq_file *seq, void *v, loff_t *pos)

返回类型:void

参数:

类型参数名称
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  如果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
1650  next_obj等于obj
1651  退出
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  返回:next_obj