第十五章 Linux核心数据结构  
本章列出了Linux实用的主要数据结构。  
block_dev_struct 
此结构用于向核心登记块设备,它还被buffer cache实用。所有此类结构都位于blk_dev数组中。  
struct blk_dev_struct { 
    void (*request_fn)(void); 
    struct request * current_request; 
    struct request   plug; 
    struct tq_struct plug_tq; 
}; 
buffer_head 
此结构包含关于buffer cache中一块缓存的信息。  
/* bh state bits */ 
#define BH_Uptodate  0   /* 1 if the buffer contains valid data      */ 
#define BH_Dirty     1   /* 1 if the buffer is dirty                 *...[ 查看全文 ]