2) How do I free the ramdisk? Does kernel do it automatically?
If so, what are the conditions for this? And what would be the
consequences in the case of a large RAM disks (~100 MB)?
There is in example of an old freeramdisk program which does smth
like
f=open(ram_device,O_RDWR);
ioctl(f,BLKFLSBUF);
close(f);
Will it do the job? Will it work on arbitrary ramdisk size?
Please CC me if you reply to the list.
Thanks.
-- ---------------------------------------- Constantine Gavrilov Unix System Administrator and Programmer Orbotech Yavne 81102, Israel Phone: (972-8)-942-3064 Fax: (972-8)-942-3800 ----------------------------------------- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/