Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:lookup_one_len_common

Proto:static int lookup_one_len_common(const char *name, struct dentry *base, int len, struct qstr *this)

Type:int

Parameter:

TypeParameterName
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  If Not len Then Return -EACCES
2454  If Value for the false possibility is greater at compile time(name[0] == '.') Then
2455  If len < 2 || len == 2 && name[1] == '.' Then Return -EACCES
2459  When len-- cycle
2460  c = name++
2461  If c == '/' || c == '\0' Then Return -EACCES
2468  If protected by d_lock & d_flags entries Then
2469  err = d_hash(base, this)
2470  If err < 0 Then Return err
2474  Return 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
Caller
NameDescribe
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