Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:show_vfsmnt

Proto:static int show_vfsmnt(struct seq_file *m, struct vfsmount *mnt)

Type:int

Parameter:

TypeParameterName
struct seq_file *m
struct vfsmount *mnt
99  p = private
100  r = real_mount(mnt)
101  struct path mnt_path = {dentry = root of the mounted tree , mnt = mnt}
102  sb = The root of the dentry tree
105  If show_devname Then
106  err = show_devname(m, dentry)
107  If err Then Go to out
109  Else
110  mangle(m, Name of device e.g. /dev/dsk/hda1 ? Name of device e.g. /dev/dsk/hda1 : "none")
112  seq_putc(m, ' ')
114  err = Same as seq_path, but relative to supplied root.
115  If err Then Go to out
117  seq_putc(m, ' ')
118  show_type(m, sb)
119  seq_puts(m, __mnt_is_readonly: check whether a mount is read-only*@mnt: the mount to check for its write status* This shouldn't be used directly ouside of the VFS.* It does not guarantee that the filesystem will stay* r/w, just that it is right *now*. This can not and ? " ro" : " rw")
120  err = show_sb_opts(m, sb)
121  If err Then Go to out
123  show_mnt_opts(m, mnt)
124  If show_options Then err = show_options(m, dentry)
126  seq_puts(m, " 0 0\n")
127  out :
128  Return err