函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lookup_one_len - filesystem helper to lookup single pathname component*@name: pathname component to lookup*@base: base directory to lookup from*@len: maximum length @len should be interpreted to* Note that this routine is purely a helper for filesystem

函数原型:struct dentry *lookup_one_len(const char *name, struct dentry *base, int len)

返回类型:struct dentry

参数:

类型参数名称
const char *name
struct dentry *base
intlen
2523  WARN_ON_ONCE(!inode_is_locked( Where the name belongs to - NULL is * negative ))
2525  err等于lookup_one_len_common(name, base, len, & this)
2526  如果err则返回:错误号
2529  dentry等于This looks up the name in dcache and possibly revalidates the found dentry.* NULL is returned if the dentry does not exist in the cache.
2530  返回:如果dentrydentry否则Fast lookup failed, do it the slow way
调用者
名称描述
SYSCALL_DEFINE1
aafs_createaafs_create - create a dentry in the apparmorfs filesystem*@name: name of dentry to create*@mode: permissions the file should have*@parent: parent directory for this dentry*@data: data to store on inode
aa_mk_null_file
bm_register_write/register