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:Same as seq_path, but relative to supplied root.

Proto:int seq_path_root(struct seq_file *m, const struct path *path, const struct path *root, const char *esc)

Type:int

Parameter:

TypeParameterName
struct seq_file *m
const struct path *path
const struct path *root
const char *esc
505  size = seq_get_buf - get buffer to write arbitrary data to*@m: the seq_file handle*@bufp: the beginning of the buffer is stored here* Return the number of bytes available in the buffer, or zero if* there's no space.
506  res = -ENAMETOOLONG
508  If size Then
511  p = __d_path(path, root, buf, size)
512  If Not p Then Return SEQ_SKIP
514  res = PTR_ERR(p)
515  If Not IS_ERR(p) Then
517  If end Then res = end - buf
519  Else res = -ENAMETOOLONG
523  seq_commit - commit data to the buffer*@m: the seq_file handle*@num: the number of bytes to commit* Commit @num bytes of data written to a buffer previously acquired* by seq_buf_get. To signal an error condition, or that the data
525  Return If res < 0 && res != -ENAMETOOLONG Then res Else 0
Caller
NameDescribe
show_vfsmnt
show_mountinfo
show_vfsstat