Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Lookup the data. This is trivial - if the dentry didn't already* exist, we know it is negative. Set d_op to delete negative dentries.

Proto:struct dentry *simple_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags)

Type:struct dentry

Parameter:

TypeParameterName
struct inode *dir
struct dentry *dentry
unsigned intflags
67  If len > # chars in a file name Then Return ERR_PTR( - ENAMETOOLONG)
69  If Not s_d_op Then d_set_d_op(dentry, & simple_dentry_operations)
71  d_add - add dentry to hash queues*@entry: dentry to add*@inode: The inode to attach to this dentry* This adds the entry to the hash queues and initializes @inode.* The entry was actually filled in earlier during d_alloc().
72  Return NULL