
linux
qqzhangchang
世界上一共有10种人,一种懂什么是二进制,一种不懂。
展开
-
IO - 同步,异步,阻塞,非阻塞
当你发现自己最受欢迎的一篇blog其实大错特错时,这绝对不是一件让人愉悦的事。《 IO - 同步,异步,阻塞,非阻塞 》是我在开始学习epoll和libevent的时候写的,主要的思路来自于文中的那篇link 。写完之后发现很多人都很喜欢,我还是非常开心的,也说明这个问题确实困扰了很多人。随着学习的深入,渐渐的感觉原来的理解有些偏差,但是还是没引起自己的重视,觉着都是一些小错误,无伤大雅。直到转载 2012-07-17 19:12:08 · 518 阅读 · 0 评论 -
linux vfs 解析 之 inode
http://blog.sina.com.cn/s/blog_5219094a01009a4e.htmlinode相关的数据结构为:struct inode { struct hlist_node i_hash; struct list_head i_list; struct list_head i_sb_list; struct list_he转载 2012-10-26 18:54:54 · 733 阅读 · 0 评论 -
linux vfs 解析 之 file - 进程相关的信息
http://blog.sina.com.cn/s/blog_5219094a01009a4h.html进程相关的信息 和进程相关的信息, 涉及到四个重要的数据结构:file, fs_struct, files_struct 和 namespace相关的数据结构为:struct file { struct list_head f_转载 2012-10-26 18:55:30 · 503 阅读 · 0 评论 -
linux vfs 解析 之 superblock
原文:http://blog.sina.com.cn/s/blog_5219094a01009a4c.htmlsuper block相关的数据结构为:struct super_block { struct list_head s_list; dev_t s_dev; unsigned long s_blocksize; unsi转载 2012-10-26 18:53:57 · 732 阅读 · 0 评论 -
linux vfs 解析 之 mount 文件系统
linux vfs 解析 之 mount 文件系统http://blog.sina.com.cn/s/blog_5219094a0100calt.htmlhttp://blog.sina.com.cn/s/blog_5219094a0100caly.htmlhttp://blog.sina.com.cn/s/blog_5219094a0100cam0.html转载 2012-10-26 18:52:14 · 877 阅读 · 0 评论 -
linux vfs 解析 之 dentry
http://blog.sina.com.cn/s/blog_5219094a01009a4g.htmldentry相关的数据结构为:struct dentry { atomic_t d_count; unsigned int d_flags; spinlock_t d_lock; struct inode *d_inode;转载 2012-10-26 18:56:06 · 556 阅读 · 0 评论 -
@eexplorer:Linux x86 spinlock实现之分析
http://yuanbor.blog.163.com/blog/static/5667462020104192227815/1. TAS lock (test-and-set)这是最简单的spinlock,CPU会在硬件上提供一些指令来帮助OS实现spinlock,比如x86就有xchg, LOCK指令前缀等指令。。。test_and_set()可以利用这些指令对某个memory转载 2013-03-08 12:06:11 · 526 阅读 · 0 评论 -
Linus修正一个内核的mmap data corrupt bug
Linus修正一个内核的mmap data corrupt bugSubmitted by wheelz on Mon, 2007-01-15 19:30内核研究Linus最近在lkml中修正了一个mmap文件内容错误的bug。http://lwn.net/Articles/215868/http://kerneltrap.org/n转载 2013-03-16 10:30:02 · 780 阅读 · 0 评论