函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:devpts_acquire

函数原型:struct pts_fs_info *devpts_acquire(struct file *filp)

返回类型:struct pts_fs_info

参数:

类型参数名称
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  如果s_magic不等于DEVPTS_SUPER_MAGIC
212  err等于devpts_ptmx_path( & path)
213  如果err
214  result等于错误号
215  转到: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  返回:result