函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:devpts_fill_super

函数原型:static int devpts_fill_super(struct super_block *s, void *data, int silent)

返回类型:int

参数:

类型参数名称
struct super_block *s
void *data
intsilent
450  s_iflags与等于Ignore devices on this fs 的反
451  s_blocksize等于1024
452  s_blocksize_bits等于10
453  s_magic等于DEVPTS_SUPER_MAGIC
454  s_op等于devpts_sops
455  s_d_op等于simple_dentry_operations
456  s_time_gran等于1
458  error等于负ENOMEM
459  s_fs_info等于new_pts_fs_info(s)
460  如果非s_fs_info则转到:fail
463  error等于parse_mount_options():* Set @opts to mount options specified in @data. If an option is not* specified in @data, set it to its default value.* Note: @data may be NULL (in which case all options are set to default).
464  如果error则转到:fail
467  error等于负ENOMEM
468  inode等于取新的索引节点
469  如果非inode则转到:fail
471  Stat data, not accessed from path walking 等于1
472  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.
473  i_mode等于S_IFDIR按位或S_IRUGO按位或S_IXUGO按位或S_IWUSR
474  i_op等于simple_dir_inode_operations
475  rmer ->i_op->default_file_ops 等于simple_dir_operations
476  set_nlink - directly set an inode's link count*@inode: inode*@nlink: new nlink (should be non-zero)* This is a low-level filesystem helper to replace any* direct filesystem manipulation of i_nlink.
478  s_root等于d_make_root(inode)
479  如果非s_root
480  打印错误信息("get root dentry failed\n")
481  转到:fail
484  error等于mknod_ptmx(s)
485  如果error则转到:fail_dput
488  返回:0
489  fail_dput :
490  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
491  s_root = NULL
492  fail :
493  返回:error