函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ramfs_get_inode

函数原型:struct inode *ramfs_get_inode(struct super_block *sb, const struct inode *dir, umode_t mode, dev_t dev)

返回类型:struct inode

参数:

类型参数名称
struct super_block *sb
const struct inode *dir
umode_tmode
dev_tdev
66  inode等于取新的索引节点
68  如果inode
69  Stat data, not accessed from path walking 等于get_next_ino()
70  de_init_owner - Init uid,gid,mode for new inode according to posix standards*@inode: New inode*@dir: Directory inode*@mode: mode of the new inode
71  a_ops等于ramfs_aops
72  This is non-atomic. Only to be used before the mapping is activated.* Probably needs a barrier...
73  mapping_set_unevictable(i_mapping)
74  i_atime等于i_mtime等于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.
76  默认
78  退出
79  : & == S_IFREG
82  退出
83  : & == S_IFDIR
89  退出
90  : & == S_IFLNK
93  退出
96  返回:inode
调用者
名称描述
ramfs_mknodSMP-safe
ramfs_symlink
ramfs_fill_super