
Linux 文件系统
lcw_202
这个作者很懒,什么都没留下…
展开
-
从open系统调用的源码看文件的打开过程
<br />转自:中国Linux论坛 原作者:lucian_yao 内容有修订,并给出总结 <br />我们常常使用系统调用open来打开一个文件,例如:<br />fd = open( "/mnt/data/myfile",O_RDWR|O_CREAT);<br />下面来看看Linux是如何完成的,首先是系统调用的代码:<br />sys_open的源程序<br />view plaincopy to clipboardprint?<br />asmlinkage long sys_op转载 2010-11-11 17:41:00 · 943 阅读 · 0 评论 -
Debugfs
http://lwn.net/Articles/115405/[Posted December 13, 2004 by corbet]Kernel hackers often need to be able to export debugging information to user space. This information is not needed for the re转载 2012-02-24 14:45:49 · 632 阅读 · 0 评论 -
files_struct
44struct files_struct {48 atomic_t count;49 struct fdtable *fdt;50 struct fdtable fdtab;54 spinlock_t file_lock ____cacheline_aligned_in_smp;55 int next_fd;原创 2012-02-29 10:59:52 · 1927 阅读 · 0 评论 -
Unix调试的瑞士军刀:lsof
http://heikezhi.com/2011/06/19/swiss-army-knife-of-unix-debugging-lsof/这是“你应该知道的Unix和Linux命令”系列的第三篇,在这篇文章中,我会介绍lsof这个工具,如果说netcat是进行网络诊断的瑞士军刀,那么lsof就是Unix调试的瑞士军刀。Lsof是遵从Unix哲学的典范,它只做一件事情,并且做的相当完美—转载 2012-03-03 21:58:53 · 882 阅读 · 0 评论 -
Linux下异步IO(libaio)的使用以及性能
March 21st, 2011 Yu FengLeave a comment Go to comments原创文章,转载请注明: 转载自Erlang非业余研究本文链接地址: Linux下异步IO(libaio)的使用以及性能Linux下异步IO是比较新的内核里面才有的,异步io的好处可以参考这里.但是文章中aio_*系列的调用是glibc提供的,是转载 2012-03-03 22:30:53 · 4370 阅读 · 0 评论 -
Explicit block device plugging
http://lwn.net/Articles/438256/Since the dawn of time, or for at least as long as I have been involved, the Linux kernel has deployed a concept called "plugging" on block devices. When I/O is queued转载 2012-12-24 16:08:50 · 1213 阅读 · 0 评论