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

Proto:struct pts_fs_info *devpts_acquire(struct file *filp)

Type:struct pts_fs_info

Parameter:

TypeParameterName
struct file *filp
205  path = f_path
206  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.
209  If s_magic != DEVPTS_SUPER_MAGIC Then
212  err = devpts_ptmx_path( & path)
213  If err Then
214  result = ERR_PTR(err)
215  Go to out
222  sb = mnt_sb
223  atomic_inc( & s_active)
224  result = DEVPTS_SB(sb)
226  out :
227  path_put - put a reference to a path*@path: path to put the reference to* Given a path decrement the reference count to the dentry and the vfsmount.
228  Return result