Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\seq_file.c Create Date:2022-07-28 20:09:37
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__seq_open_private

Proto:void *__seq_open_private(struct file *f, const struct seq_operations *ops, int psize)

Type:void

Parameter:

TypeParameterName
struct file *f
const struct seq_operations *ops
intpsize
631  private = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
632  If (private == NULL) Then Go to out
635  rc = seq_open - initialize sequential file*@file: file we initialize*@op: method table describing the sequence* seq_open() sets @file, associating it with a sequence described* by @op. @op->start() sets the iterator up and returns the first
636  If rc < 0 Then Go to out_free
639  seq = needed for tty driver, and maybe others
640  private = private
641  Return private
643  out_free :
644  kfree(private)
645  out :
646  Return NULL
Caller
NameDescribe
__tracing_open
seq_open_private