如何卸载内核代码中的文件系统
16lz
2021-01-22
I am in kernel code and trying to umount a filesytem, before going to unload the driver. Before that I want to umount the filesystem.
在卸载驱动程序之前,我在内核代码中并尝试卸载filesytem。在此之前,我想卸载文件系统。
system(umount -t .....) does not work here.
system(umount -t .....)在这里不起作用。
Can any one please tell me how to umount in kerenel mode.
任何人都可以告诉我如何在kerenel模式下卸载。
2 个解决方案
#1
1
checking source code of umount()
system call at LXR you can find out how unmount is done in kernel, here are some internals you may find useful:
在LXR检查umount()系统调用的源代码,你可以找到如何在内核中完成卸载,这里有一些你可能会觉得有用的内部:
real_mount()
check_mnt()
do_umount()
mntput_no_expire()
更多相关文章
- 全面解析Linux 内核 3.10.x - 编译前的准备
- Linux内核源代码情景分析读书笔记(5)-关于fork/clone/vfork
- linux 内核协议栈
- Ubuntu 12.04安装Bochs 2.6.2, 调试linux 0.11 内核
- 编译Linux内核 4.13
- 有关Linux内核分析课程的总结
- 20169210《Linux内核原理与分析》第七周作业
- linux内核分析——扒开系统调用的三层皮(下)
- Ubuntu 12.10安装Bochs 2.6, 调试linux-0.11内核