函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Advance the iterator to point to the next _ddebug* object from the one the iterator currently points at,* and returns a pointer to the new _ddebug. Returns* NULL if the iterator has seen all the _ddebugs.

函数原型:static struct _ddebug *ddebug_iter_next(struct ddebug_iter *iter)

返回类型:struct _ddebug

参数:

类型参数名称
struct ddebug_iter *iter
748  如果(table == NULL)则返回:NULL
750  如果idx先自加恒等于num_ddebugs
752  idx等于0
753  如果检查是否为链表尾
754  table = NULL
755  返回:NULL
757  table等于list_entry - get the struct for this entry*@ptr: the &struct list_head pointer.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.(链表后项, structddebug_table, link)
760  返回:ddebugs[idx]
调用者
名称描述
ddebug_proc_startSeq_ops start method. Called at the start of every* read() call from userspace. Takes the ddebug_lock and* seeks the seq_file's iterator to the given position.
ddebug_proc_nextSeq_ops next method. Called several times within a read()* call from userspace, with ddebug_lock held. Walks to the* next _ddebug object with a special case for the header line.