Function report |
Source Code:fs\fs_struct.c |
Create Date:2022-07-28 20:12:12 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:chroot_fs_refs
Proto:void chroot_fs_refs(const struct path *old_root, const struct path *new_root)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
const struct path * | old_root | |
const struct path * | new_root |
62 | count = 0 |
64 | read_lock( & tasklist_lock) |
68 | If fs Then |
69 | hits = 0 |
71 | write_seqcount_begin( & seq) |
72 | hits += replace_path( & root, old_root, new_root) |
73 | hits += replace_path( & pwd, old_root, new_root) |
74 | write_seqcount_end( & seq) |
76 | count++ |
79 | spin_unlock( & lock) |
81 | task_unlock(p) |
83 | read_unlock( & tasklist_lock) |
Name | Describe |
---|---|
SYSCALL_DEFINE2 | pivot_root Semantics:* Moves the root file system of the current process to the directory put_old,* makes new_root as the new root file system of the current process, and sets* root/cwd of all processes which had them on the current root to new_root |
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 |