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:SMP-safe

Proto:static int ramfs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev)

Type:int

Parameter:

TypeParameterName
struct inode *dir
struct dentry *dentry
umode_tmode
dev_tdev
106  inode = ramfs_get_inode(i_sb, dir, mode, dev)
107  error = -ENOSPC
109  If inode Then
110  d_instantiate - fill in inode information for a dentry*@entry: dentry to complete*@inode: inode to attach to this dentry* Fill in inode information in the entry
111  get a reference to a dentry
112  error = 0
113  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.
115  Return error
Caller
NameDescribe
ramfs_mkdir
ramfs_create