1SEQ_OPEN(9)                      The Linux VFS                     SEQ_OPEN(9)
2
3
4

NAME

6       seq_open - initialize sequential file
7

SYNOPSIS

9       int seq_open(struct file * file, const struct seq_operations * op);
10

ARGUMENTS

12       file
13           file we initialize
14
15       op
16           method table describing the sequence
17

DESCRIPTION

19       seq_open sets file, associating it with a sequence described by op.
20       op->start sets the iterator up and returns the first element of
21       sequence.  op->stop shuts it down.  op->next returns the next element
22       of sequence.  op->show prints element into the buffer. In case of error
23       ->start and ->next return ERR_PTR(error). In the end of sequence they
24       return NULL. ->show returns 0 in case of success and negative number in
25       case of error. Returning SEQ_SKIP means “discard this element and move
26       on”.
27
29Kernel Hackers Manual 2.6.         June 2019                       SEQ_OPEN(9)
Impressum