函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:devpts_pty_new -- create a new inode in /dev/pts/*@ptmx_inode: inode of the master*@device: major+minor of the node to be created*@index: used as a name of the node*@priv: what's given back by devpts_get_priv* The created inode is returned

函数原型:struct dentry *devpts_pty_new(struct pts_fs_info *fsi, int index, void *priv)

返回类型:struct dentry

参数:

类型参数名称
struct pts_fs_info *fsi
intindex
void *priv
565  sb等于sb
571  root等于s_root
572  opts等于mount_opts
574  inode等于取新的索引节点
575  如果非inode则返回:错误号
578  Stat data, not accessed from path walking 等于index加3
579  i_uid等于如果setuiduid否则current_fsuid()
580  i_gid等于如果setgidgid否则current_fsgid()
581  i_mtime等于i_atime等于i_ctime等于rrent_time - Return FS time*@inode: inode.* Return the current time truncated to the time granularity supported by* the fs.* Note that inode and inode->sb cannot be NULL.* Otherwise, the function warns and returns time without truncation.
582  init_special_inode(inode, S_IFCHR | mode, MKDEV(UNIX98_PTY_SLAVE_MAJOR, index))
584  输出格式化串
586  dentry等于d_alloc_name(root, s)
587  如果dentry
588  fs-specific data 等于priv
589  添加目录项到哈希队列
590  snotify_create - 'name' was linked in
591  否则
592  放置一个索引节点
593  dentry等于错误号
596  返回:dentry