Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:static void *ddebug_proc_start(struct seq_file *m, loff_t *pos)

Type:void

Parameter:

TypeParameterName
struct seq_file *m
loff_t *pos
770  iter = private
772  n = pos
774  vpr_info("called m=%p *pos=%lld\n", m, (unsignedlonglong) * pos)
776  mutex_lock( & ddebug_lock)
778  If Not n Then Return SEQ_START_TOKEN
780  If n < 0 Then Return NULL
782  dp = 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.
783  When dp != NULL && --n > 0 cycle
784  dp = 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.
785  Return dp