函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Now umount can handle mount points as well as block devices.* This is important for filesystems which use unnamed block devices.* We now support a flag for forced unmount like the other 'big iron'* unixes

函数原型:int ksys_umount(char __user *name, int flags)

返回类型:int

参数:

类型参数名称
char __user *name
intflags
1672  lookup_flags等于0
1674  如果flags按位与Attempt to forcibily umount 按位或Just detach from the tree 按位或Mark for expiry 按位或Don't follow symlink on umount 的值的反则返回:负EINVAL
1677  如果非Is the caller allowed to modify his namespace?则返回:负EPERM
1680  如果非flags按位与Don't follow symlink on umount 的值则lookup_flags或等于llow links at the end
1683  retval等于ser_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
1684  如果retval则转到:out
1686  mnt等于real_mount(mnt)
1687  retval等于负EINVAL
1688  如果dentry不等于mnt_root则转到:dput_and_out
1690  如果非check_mnt(mnt)则转到:dput_and_out
1692  如果mnt_flags按位与MNT_LOCKED则转到:dput_and_out
1694  retval等于负EPERM
1695  如果flags按位与Attempt to forcibily umount 且非操作权限检查则转到:dput_and_out
1698  retval等于do_umount(mnt, flags)
1699  dput_and_out :
1701  dput - release a dentry*@dentry: dentry to release * Release a dentry. This will drop the usage count and if appropriate* call the dentry unlink method as well as removing it from the queues and* releasing its resources
1702  mntput_no_expire(mnt)
1703  out :
1704  返回:retval
调用者
名称描述
SYSCALL_DEFINE2
SYSCALL_DEFINE1The 2.0 compatible umount. No flags.
handle_initrd