发布时间:2013-12-22 23:05:36
add_disk的主要功能总结如下1、将一个磁盘对象gendisk加到bdev_map中Blk_register_region这个函数会操作类型为 struct kobj_map的全局变量bdev_map,它将gendisk对象加入到bdev_map中 2、在/dev目录下生成一个设备节点3、生成一个block_device对象和一个隶属于bdev文件.........【阅读全文】
发布时间:2013-12-09 22:20:07
static int __make_request(struct request_queue *q, struct bio *bio) { struct request *req; int el_ret, nr_sectors; const&n.........【阅读全文】
发布时间:2013-12-09 20:28:06
/** * do_generic_file_read - generic file read routine * @filp: the file to read * @ppos: current file position *&.........【阅读全文】
发布时间:2013-12-08 17:58:22
/* * This is the worker routine which does all the work of mapping the disk * blocks and constructs largest possible bios, submits them&nbs.........【阅读全文】