Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:s_next

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

Type:void

Parameter:

TypeParameterName
struct seq_file *m
void *v
loff_t *pos
3470  iter = private
3471  int i = (int) * pos
3474  WARN_ON_ONCE(leftover)
3476  pos++
3479  If idx > i Then Return NULL
3482  If idx < 0 Then ent = Find the next real entry, and increment the iterator to the next entry
3484  Else ent = iter
3487  When ent && idx < i cycle
3488  ent = Find the next real entry, and increment the iterator to the next entry
3490  pos = pos
3492  Return ent
Caller
NameDescribe
s_startThe current tracer is copied to avoid a global locking* all around.