函数逻辑报告 |
Source Code:fs\fs_struct.c |
Create Date:2022-07-29 10:43:05 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:chroot_fs_refs
函数原型:void chroot_fs_refs(const struct path *old_root, const struct path *new_root)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
const struct path * | old_root | |
const struct path * | new_root |
62 | count等于0 |
64 | read_lock( & tasklist_lock) |
68 | 如果fs则 |
69 | hits等于0 |
70 | 加自旋锁 |
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 | 自旋锁解锁 |
81 | task_unlock(p) |
83 | read_unlock( & tasklist_lock) |
名称 | 描述 |
---|---|
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 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |