All of lore.kernel.org
 help / color / mirror / Atom feed
* How to open and write to a block driver within a character driver?
@ 2011-10-04 17:42 Yang Xiang
  2011-10-04 17:46 ` Greg KH
  0 siblings, 1 reply; 7+ messages in thread
From: Yang Xiang @ 2011-10-04 17:42 UTC (permalink / raw)
  To: kernelnewbies


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.
 
I am new at this. And I am doing all this within kernel space so I really don't know I can open a block device without using "open" and "write" syscalls. I know there is a generic_make_request call to block driver but it requires the bio vec to be filled out with data and I don't know where to start on that.
 
Any quick solution to this plase?
 
Thanks so much in advance,
 
yx
  		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20111004/5f858f41/attachment.html 

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-10-07  3:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-04 17:42 How to open and write to a block driver within a character driver? Yang Xiang
2011-10-04 17:46 ` Greg KH
2011-10-04 17:52   ` Yang Xiang
2011-10-04 18:04     ` Greg KH
2011-10-06 22:43       ` Yang Xiang
2011-10-06 23:03         ` Greg Freemyer
2011-10-07  3:09         ` Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.