[Ilugc] Need help in block drivers

  • From: rajasuperman@xxxxxxxxx (Raja Subramanian)
  • Date: Wed May 3 21:46:26 2006

Hi,

On 5/3/06, sudheer <urwithsudheer@xxxxxxxxx> wrote:

Can we write/run  a sample  block driver module without having a block
device as we do normal character driver modules.
If yes, can someone  give me a pointer or source for sample code.

Take a look at the RAM disk driver in the kernel.  You should find it
in the kernel source in drivers/block/rd.c.

When you are done with that, have a look at the loop back driver. It
lives in drivers/block/loop.c.

- Raja

Other related posts: