函数逻辑报告

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

函数名称:Set the iterator to point to the first _ddebug object* and return a pointer to that first object. Returns* NULL if there are no _ddebugs at all.

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

返回类型:struct _ddebug

参数:

类型参数名称
struct ddebug_iter *iter
729  如果链表为空
730  table = NULL
731  idx等于0
732  返回:NULL
734  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)
736  idx等于0
737  返回: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.