Function report |
Source Code:fs\namespace.c |
Create Date:2022-07-28 20:09:18 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:add a mount into a namespace's mount tree
Proto:static int do_add_mount(struct mount *newmnt, struct path *path, int mnt_flags)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct mount * | newmnt | |
struct path * | path | |
int | mnt_flags |
2706 | mnt_flags &= ~MNT_INTERNAL_FLAGS |
2708 | mp = lock_mount(path) |
2712 | parent = real_mount(mnt) |
2716 | If Not (mnt_flags & MNT_SHRINKABLE) Then Go to unlock |
2719 | If Not containing namespace Then Go to unlock |
2725 | If mnt_sb == pointer to superblock && mnt_root == dentry Then Go to unlock |
2730 | If d_is_symlink( root of the mounted tree ) Then Go to unlock |
2734 | err = graft_tree(newmnt, parent, mp) |
2736 | unlock : |
2737 | unlock_mount(mp) |
2738 | Return err |
Name | Describe |
---|---|
do_new_mount_fc | Create a new mount using a superblock configuration and request it* be added to the namespace tree. |
finish_automount |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |