函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:show_mountinfo

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

返回类型:int

参数:

类型参数名称
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  如果show_path
142  err等于show_path(m, root of the mounted tree )
143  如果err则转到:out
145  否则
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  如果err则转到: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  如果IS_MNT_SHARED(r)则seq_printf(m, " shared:%i", peer group identifier )
161  如果IS_MNT_SLAVE(r)则
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  如果domdom不等于masterseq_printf(m, " propagate_from:%i", dom)
168  如果IS_MNT_UNBINDABLE(r)则seq_puts(m, " unbindable")
172  seq_puts(m, " - ")
173  show_type(m, sb)
174  seq_putc(m, ' ')
175  如果show_devname
176  err等于show_devname(m, root of the mounted tree )
177  如果err则转到:out
179  否则
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  如果err则转到:out
186  如果show_optionserr等于show_options(m, root of the mounted tree )
188  seq_putc(m, '\n')
189  out :
190  返回:err