函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Try to find a suitable devpts filesystem. We support the following* scenarios:* - The ptmx device node is located in the same directory as the devpts* mount where the pts device nodes are located.* This is e

函数原型:struct vfsmount *devpts_mntget(struct file *filp, struct pts_fs_info *fsi)

返回类型:struct vfsmount

参数:

类型参数名称
struct file *filp
struct pts_fs_info *fsi
171  err等于0
173  path等于f_path
174  path_get - get a reference to a path*@path: path to get the reference to* Given a path increment the reference count to the dentry and the vfsmount.
179 mnt_root恒等于dentry循环
180  如果llow_up - Find the mountpoint of path's vfsmount* Given a path, find the mountpoint of its source file system恒等于0则退出
184  如果s_magic不等于DEVPTS_SUPER_MAGICDEVPTS_SB(mnt_sb)不等于fsierr等于devpts_ptmx_path( & path)
187  dput - release a dentry*@dentry: dentry to release * Release a dentry. This will drop the usage count and if appropriate* call the dentry unlink method as well as removing it from the queues and* releasing its resources
188  如果非err
189  如果DEVPTS_SB(mnt_sb)恒等于fsi则返回:mnt
192  err等于负ENODEV
195  mntput(mnt)
196  返回:错误号