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()

更多相关文章

  1. 全面解析Linux 内核 3.10.x - 编译前的准备
  2. Linux内核源代码情景分析读书笔记(5)-关于fork/clone/vfork
  3. linux 内核协议栈
  4. Ubuntu 12.04安装Bochs 2.6.2, 调试linux 0.11 内核
  5. 编译Linux内核 4.13
  6. 有关Linux内核分析课程的总结
  7. 20169210《Linux内核原理与分析》第七周作业
  8. linux内核分析——扒开系统调用的三层皮(下)
  9. Ubuntu 12.10安装Bochs 2.6, 调试linux-0.11内核

随机推荐

  1. android关机重启流程代码
  2. Rexsee API介绍:Android屏幕锁定Keyguard
  3. Android获取手机信号强度/信号格数
  4. Android NDK入门之Hello Jni
  5. 基于MQTT实现Android消息推送(Push…
  6. Android 默认壁纸 简单分析
  7. Kotlin 风险高、RxJava 已过时,Android(安
  8. Android 如何从屏幕底部向上滑出一个view
  9. Android Android Studio 快捷键整理分享,
  10. android onTouchEvent和setOnTouchListen