函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Iterate over the object_list and return the first valid object at or after* the required position with its use_count incremented. The function triggers* a memory scanning when the pos argument points to the first position.

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

返回类型:void

参数:

类型参数名称
struct seq_file *seq
loff_t *pos
1617  n等于pos
1620  err等于mutex_lock_interruptible( & protects the memory scanning, parameters and debug/kmemleak file access )
1621  如果err小于0则返回:错误号
1624  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
1626  如果n自减大于0则继续下一循环
1628  如果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则转到:out
1631  object = NULL
1632  out :
1633  返回:object