Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:struct vfsmount *devpts_mntget(struct file *filp, struct pts_fs_info *fsi)

Type:struct vfsmount

Parameter:

TypeParameterName
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  When mnt_root == dentry cycle
180  If llow_up - Find the mountpoint of path's vfsmount* Given a path, find the mountpoint of its source file system == 0 Then Break
184  If s_magic != DEVPTS_SUPER_MAGIC || DEVPTS_SB(mnt_sb) != fsi Then err = 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  If Not err Then
189  If DEVPTS_SB(mnt_sb) == fsi Then Return mnt
192  err = -ENODEV
195  mntput(mnt)
196  Return ERR_PTR(err)