![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux
qqzhangchang
世界上一共有10种人,一种懂什么是二进制,一种不懂。
展开
-
IO - 同步,异步,阻塞,非阻塞
当你发现自己最受欢迎的一篇blog其实大错特错时,这绝对不是一件让人愉悦的事。 《 IO - 同步,异步,阻塞,非阻塞 》是我在开始学习epoll和libevent的时候写的,主要的思路来自于文中的那篇link 。写完之后发现很多人都很喜欢,我还是非常开心的,也说明这个问题确实困扰了很多人。随着学习的深入,渐渐的感觉原来的理解有些偏差,但是还是没引起自己的重视,觉着都是一些小错误,无伤大雅。直到转载 2012-07-17 19:12:08 · 495 阅读 · 0 评论 -
linux vfs 解析 之 inode
http://blog.sina.com.cn/s/blog_5219094a01009a4e.html inode 相关的数据结构为: 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 · 680 阅读 · 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 · 473 阅读 · 0 评论 -
linux vfs 解析 之 superblock
原文:http://blog.sina.com.cn/s/blog_5219094a01009a4c.html super block 相关的数据结构为: struct super_block { struct list_head s_list; dev_t s_dev; unsigned long s_blocksize; unsi转载 2012-10-26 18:53:57 · 679 阅读 · 0 评论 -
linux vfs 解析 之 mount 文件系统
linux vfs 解析 之 mount 文件系统 http://blog.sina.com.cn/s/blog_5219094a0100calt.html http://blog.sina.com.cn/s/blog_5219094a0100caly.html http://blog.sina.com.cn/s/blog_5219094a0100cam0.html转载 2012-10-26 18:52:14 · 834 阅读 · 0 评论 -
linux vfs 解析 之 dentry
http://blog.sina.com.cn/s/blog_5219094a01009a4g.html dentry 相关的数据结构为: struct dentry { atomic_t d_count; unsigned int d_flags; spinlock_t d_lock; struct inode *d_inode;转载 2012-10-26 18:56:06 · 509 阅读 · 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 · 486 阅读 · 0 评论 -
Linus修正一个内核的mmap data corrupt bug
Linus修正一个内核的mmap data corrupt bug Submitted 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 · 725 阅读 · 0 评论