RAM disk
Greg Freemyer
greg.freemyer at gmail.com
Mon Jan 17 18:04:50 EST 2011
On Mon, Jan 17, 2011 at 5:07 PM, Ugu Barr jr. <ugubarr at mail.com> wrote:
> Hi there,
>
> I would like to study the code of the Linux RAM Disk.
> Could someone, please point me where to start.
>
> Thanks,
> Ugu
Do you just want to look at the code?
If so: the linux kernel source browser is nice starting point.
http://lxr.linux.no
I put ram disk in the search box and one of the first results was the
internal kernel doc file for the ram disk:
http://lxr.linux.no/#linux+v2.6.37/Documentation/blockdev/ramdisk.txt
That file is a little out of date because it talks about rdev, which
was deleted from util-linux last summer I think. I don't know what
tool / process takes it's place.
If you figure it out, write a patch to the doc file and get your name
memorialized in the kernel git log!
A little more poking around at lxr.linux.no gets you to
http://lxr.linux.no/#linux+v2.6.37/drivers/block/brd.c
Which I think is the source code your looking for.
Greg
More information about the Kernelnewbies
mailing list