函数逻辑报告

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

函数名称:path_mountpoint - look up a path to be umounted*@nd: lookup context*@flags: lookup flags*@path: pointer to container for result* Look up the given name, but don't attempt to revalidate the last component.

函数原型:static int path_mountpoint(struct nameidata *nd, unsigned flags, struct path *path)

返回类型:int

参数:

类型参数名称
struct nameidata *nd
unsignedflags
struct path *path
2632  s等于must be paired with terminate_walk()
2635  当非err等于Name resolution.* This is the basic name resolution function, turning a pathname into* the final dentry. We expect 'base' to be positive and a directory.* Returns 0 and nd will have valid dentry and mnt on success.err等于lookup_last(nd)大于0循环
2637  s等于trailing_symlink(nd)
2639  如果非errflags按位与RCU pathwalk mode; semi-internal err等于lazy_walk - try to switch to ref-walk mode
2641  如果非errerr等于handle_lookup_down(nd)
2643  如果非err
2644  path等于path
2645  mnt = NULL
2646  dentry = NULL
2648  terminate_walk(nd)
2649  返回:err
调用者
名称描述
filename_mountpoint