函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lookup_one_len_common

函数原型:static int lookup_one_len_common(const char *name, struct dentry *base, int len, struct qstr *this)

返回类型:int

参数:

类型参数名称
const char *name
struct dentry *base
intlen
struct qstr *this
2448  name等于name
2449  len等于len
2450  hash等于Return the hash of a string of known length
2451  如果非len则返回:负EACCES
2454  如果此条件成立可能性小(为编译器优化)(name[0] == '.')则
2455  如果len小于2或len恒等于2且name[1]恒等于'.'则返回:负EACCES
2459 len自减循环
2460  c等于name自加
2461  如果c恒等于'/'或c恒等于'\0'则返回:负EACCES
2468  如果 protected by d_lock 按位与d_flags entries
2469  err等于d_hash(base, this)
2470  如果err小于0则返回:err
2474  返回:de_permission - Check for access rights to a given inode*@inode: Inode to check permission on*@mask: Right to check for (%MAY_READ, %MAY_WRITE, %MAY_EXEC)* Check for read/write/execute permissions on an inode
调用者
名称描述
try_lookup_one_lenry_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* Look up a dentry by name in the dcache, returning NULL
lookup_one_lenlookup_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
lookup_one_len_unlockedlookup_one_len_unlocked - 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