函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

函数原型:static void *ddebug_proc_start(struct seq_file *m, loff_t *pos)

返回类型:void

参数:

类型参数名称
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  如果非n则返回:SEQ_START_TOKEN
780  如果n小于0则返回: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 dp不等于NULLn先自减大于0循环
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  返回:dp