Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\ramfs\inode.c Create Date:2022-07-28 20:34:49
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ramfs_get_inode

Proto:struct inode *ramfs_get_inode(struct super_block *sb, const struct inode *dir, umode_t mode, dev_t dev)

Type:struct inode

Parameter:

TypeParameterName
struct super_block *sb
const struct inode *dir
umode_tmode
dev_tdev
66  inode = obtain an inode
68  If inode Then
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  Default
78  Break
79  Case & == S_IFREG
82  Break
83  Case & == S_IFDIR
89  Break
90  Case & == S_IFLNK
93  Break
96  Return inode
Caller
NameDescribe
ramfs_mknodSMP-safe
ramfs_symlink
ramfs_fill_super