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:filename_mountpoint

Proto:static int filename_mountpoint(int dfd, struct filename *name, struct path *path, unsigned int flags)

Type:int

Parameter:

TypeParameterName
intdfd
struct filename *name
struct path *path
unsigned intflags
2658  If IS_ERR(name) Then Return PTR_ERR(name)
2660  set_nameidata( & nd, dfd, name)
2661  error = 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.
2662  If Value for the false possibility is greater at compile time(error == - ECHILD) Then error = 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.
2664  If Value for the false possibility is greater at compile time(error == - ESTALE) Then error = 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.
2666  If Value is more likely to compile time(!error) Then audit_inode(name, dentry, audit record incomplete )
2668  restore_nameidata()
2669  putname(name)
2670  Return error
Caller
NameDescribe
user_path_mountpoint_atser_path_mountpoint_at - lookup a path from userland in order to umount it*@dfd: directory file descriptor*@name: pathname from userland*@flags: lookup flags*@path: pointer to container to hold result* A umount is a special case for path walking
kern_path_mountpoint