Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:simple_link

Proto:int simple_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry)

Type:int

Parameter:

TypeParameterName
struct dentry *old_dentry
struct inode *dir
struct dentry *dentry
323  inode = d_inode - Get the actual inode of this dentry*@dentry: The dentry to query* This is the helper normal filesystems should use to get at their own inodes* in their own dentries and ignore the layering superimposed upon them.
325  i_ctime = i_ctime = i_mtime = 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.
326  _nlink - directly increment an inode's link count*@inode: inode* This is a low-level filesystem helper to replace any* direct filesystem manipulation of i_nlink. Currently,* it is only here for parity with dec_nlink().
327  get additional reference to inode; caller must already hold one.
328  get a reference to a dentry
329  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
330  Return 0