函数逻辑报告 |
Source Code:fs\namespace.c |
Create Date:2022-07-29 10:39:33 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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 | |
int | flags |
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 |
1686 | mnt等于real_mount(mnt) |
1688 | 如果dentry不等于mnt_root则转到:dput_and_out |
1690 | 如果非check_mnt(mnt)则转到:dput_and_out |
1692 | 如果mnt_flags按位与MNT_LOCKED则转到:dput_and_out |
1695 | 如果flags按位与Attempt to forcibily umount 且非操作权限检查则转到:dput_and_out |
1699 | dput_and_out : |
1702 | mntput_no_expire(mnt) |
1703 | out : |
1704 | 返回:retval |
名称 | 描述 |
---|---|
SYSCALL_DEFINE2 | |
SYSCALL_DEFINE1 | The 2.0 compatible umount. No flags. |
handle_initrd |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |