函数逻辑报告 |
Source Code:fs\namespace.c |
Create Date:2022-07-29 10:39:43 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Flags is a 32-bit value that allows up to 31 non-fs dependent flags to* be given to the mount() call (ie: read-only, no-dev, no-suid etc)
函数原型:long do_mount(const char *dev_name, const char __user *dir_name, const char *type_page, unsigned long flags, void *data_page)
返回类型:long
参数:
类型 | 参数 | 名称 |
---|---|---|
const char * | dev_name | |
const char __user * | dir_name | |
const char * | type_page | |
unsigned long | flags | |
void * | data_page |
3065 | mnt_flags等于0 |
3066 | retval等于0 |
3069 | 如果flags按位与MS_MGC_MSK的值恒等于Old magic mount flag and mask则flags与等于MS_MGC_MSK的反 |
3073 | 如果data_page则) = 0 |
3080 | retval等于user_path_at(Special value used to indicateopenat should use the currentworking directory. , dir_name, llow links at the end , & path) |
3088 | 如果非retval且flags按位与Allow mandatory locks on an FS 且非may_mandlock()则retval等于负EPERM |
3094 | 如果非flags按位与Do not update access times. 的值则mnt_flags或等于MNT_RELATIME |
3098 | 如果flags按位与Ignore suid and sgid bits 则mnt_flags或等于MNT_NOSUID |
3102 | 如果flags按位与Disallow program execution 则mnt_flags或等于MNT_NOEXEC |
3104 | 如果flags按位与Do not update access times. 则mnt_flags或等于MNT_NOATIME |
3108 | 如果flags按位与Always perform atime updates 则mnt_flags与等于MNT_RELATIME按位或MNT_NOATIME的值的反 |
3117 | mnt_flags与等于MNT_ATIME_MASK的反 |
3118 | mnt_flags或等于mnt_flags按位与MNT_ATIME_MASK |
3135 | 否则如果flags按位与MS_BIND则retval等于do loopback mount. |
3137 | 否则如果flags按位与change to shared 按位或change to private 按位或change to slave 按位或change to unbindable 的值则retval等于rsively change the type of the mountpoint. |
3141 | 否则retval等于reate a new mount for userspace and request it to be added into the* namespace's tree |
3144 | dput_out : |
3146 | 返回:retval |
名称 | 描述 |
---|---|
prepare_namespace | Prepare the namespace - decide what/where to mount, load ramdisks, etc. |
init_linuxrc | |
handle_initrd | |
SYSCALL_DEFINE5 | |
COMPAT_SYSCALL_DEFINE5 | |
do_mount_root |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |