EmbLogic's Blog

block device driver

RCS file: ./RCS/init.c,v
Working file: ./init.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;    selected revisions: 1
description:
Block device driver __init function (), in this function i initilize the important and required structures like struct gendisk, all the elements of that and struct sbulldev which is user defined data struture and then i initilize the struct request_queue and then inside that structure i initilize the struct request and inside that structure defined the struct bio and struct bio-vec and before that i create the sectors for my simulated dewhich is my sbulldev and then i use kmalloc for the sbulldev and the which data is defined inside the struct sbulldev, provide the memory with the help of vmalloc .
—————————-
revision 1.1    locked by: root;
date: 2014/09/20 18:43:10;  author: root;  state: Exp;
Initial revision
=============================================================================

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>