Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\dynamic_debug.c Create Date:2022-07-28 07:15:52
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:static struct _ddebug *ddebug_iter_next(struct ddebug_iter *iter)

Type:struct _ddebug

Parameter:

TypeParameterName
struct ddebug_iter *iter
748  If (table == NULL) Then Return NULL
750  If ++idx == num_ddebugs Then
752  idx = 0
754  table = NULL
755  Return 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.(next, structddebug_table, link)
760  Return ddebugs[idx]
Caller
NameDescribe
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.