函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\proc_namespace.c Create Date:2022-07-29 10:47:19
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:show_vfsmnt

函数原型:static int show_vfsmnt(struct seq_file *m, struct vfsmount *mnt)

返回类型:int

参数:

类型参数名称
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  如果show_devname
106  err等于show_devname(m, dentry)
107  如果err则转到:out
109  否则
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  如果err则转到: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  如果err则转到:out
123  show_mnt_opts(m, mnt)
124  如果show_optionserr等于show_options(m, dentry)
126  seq_puts(m, " 0 0\n")
127  out :
128  返回:err