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_mountinfo

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

Type:int

Parameter:

TypeParameterName
struct seq_file *m
struct vfsmount *mnt
133  p = private
134  r = real_mount(mnt)
135  sb = pointer to superblock
136  struct path mnt_path = {dentry = root of the mounted tree , mnt = mnt}
139  seq_printf(m, "%i %i %u:%u ", mount identifier , mount identifier , MAJOR(s_dev), MINOR(s_dev))
141  If show_path Then
142  err = show_path(m, root of the mounted tree )
143  If err Then Go to out
145  Else
146  rns the path of the 'dentry' from the root of its filesystem.
148  seq_putc(m, ' ')
151  err = Same as seq_path, but relative to supplied root.
152  If err Then Go to out
155  seq_puts(m, mnt_flags & does the user want this to be r/o? ? " ro" : " rw")
156  show_mnt_opts(m, mnt)
159  If IS_MNT_SHARED(r) Then seq_printf(m, " shared:%i", peer group identifier )
161  If IS_MNT_SLAVE(r) Then
162  master = peer group identifier
163  dom = Get ID of closest dominating peer group having a representative* under the given root.* Caller must hold namespace_sem
164  seq_printf(m, " master:%i", master)
165  If dom && dom != master Then seq_printf(m, " propagate_from:%i", dom)
168  If IS_MNT_UNBINDABLE(r) Then seq_puts(m, " unbindable")
172  seq_puts(m, " - ")
173  show_type(m, sb)
174  seq_putc(m, ' ')
175  If show_devname Then
176  err = show_devname(m, root of the mounted tree )
177  If err Then Go to out
179  Else
180  mangle(m, Name of device e.g. /dev/dsk/hda1 ? Name of device e.g. /dev/dsk/hda1 : "none")
182  seq_puts(m, sb_rdonly(sb) ? " ro" : " rw")
183  err = show_sb_opts(m, sb)
184  If err Then Go to out
186  If show_options Then err = show_options(m, root of the mounted tree )
188  seq_putc(m, '\n')
189  out :
190  Return err