How to open and write to a block driver within a character driver?

Yang Xiang pointyx at live.com
Tue Oct 4 13:52:33 EDT 2011


The design is not up to me and I am just developing the code and I need to develop the filter layer to convert the character buf to bio vects. But I am wondering if there is a easy way to do this.
thanks,
yx

> Date: Tue, 4 Oct 2011 10:46:18 -0700
> From: greg at kroah.com
> To: pointyx at live.com
> CC: kernelnewbies at kernelnewbies.org
> Subject: Re: How to open and write to a block driver within a character driver?
> 
> On Tue, Oct 04, 2011 at 10:42:15AM -0700, Yang Xiang wrote:
> > I am taksed to develop a Block device driver which will be used within a
> > character device driver so the write to the character driver will be also
> > formatted, converted and duplicated to the block drvice.
> 
> Why?  That really makes no sense.  Please explain what type of problem
> you are trying to solve with this design?
> 
> greg k-h
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20111004/2ffab072/attachment.html 


More information about the Kernelnewbies mailing list