函数逻辑报告

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

函数名称:does lookup, returns the object with parent locked

函数原型:struct dentry *kern_path_locked(const char *name, struct path *path)

返回类型:struct dentry

参数:

类型参数名称
const char *name
struct path *path
2400  filename等于filename_parentat(Special value used to indicateopenat should use the currentworking directory. , getname_kernel(name), 0, path, & last, & type)
2402  如果是错误则返回:错误指示
2404  如果此条件成立可能性小(为编译器优化)(type != LAST_NORM)则
2405  path_put - put a reference to a path*@path: path to put the reference to* Given a path decrement the reference count to the dentry and the vfsmount.
2406  putname(filename)
2407  返回:错误号
2409  inode_lock_nested( Where the name belongs to - NULL is * negative , I_MUTEX_PARENT)
2410  d等于Parent directory has inode locked exclusive. This is one* and only case when ->lookup() gets called on non in-lookup* dentries - as the matter of fact, this only gets called* when directory is guaranteed to have no in-lookup children* at all.
2411  如果是错误
2412  inode_unlock( Where the name belongs to - NULL is * negative )
2413  path_put - put a reference to a path*@path: path to put the reference to* Given a path decrement the reference count to the dentry and the vfsmount.
2415  putname(filename)
2416  返回:d
调用者
名称描述
audit_alloc_mark
audit_get_ndGet path information necessary for adding watches.