Re: Creating ramdisk at runtime
From: Hans-J. Ude (news_at_hajue-ude.de)
Date: 09/01/05
- Next message: Peter T. Breuer: "Re: Creating ramdisk at runtime"
- Previous message: Daniel Franklin: "Re: CML2 in linux kernel build system?"
- Next in thread: Peter T. Breuer: "Re: Creating ramdisk at runtime"
- Reply: Peter T. Breuer: "Re: Creating ramdisk at runtime"
- Reply: Kasper Dupont: "Re: Creating ramdisk at runtime"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 01 Sep 2005 07:40:06 +0200
Wed, 31 Aug 2005 13:37:15 +0200 Wolfgang Draxinger wrote:
> Hans-J. Ude wrote:
>
>> I'm porting a program from vxWorks to Linux right now. In the
>> given program there is a function which creates a ramdisk at
>> runtime and another one which deletes it. It's implemented as
>> createRamDev (char* name, int size_kb) using internal vxWorks
>> system functions. I thought there would be Linux system calls
>> as well which do the same or similiar things. I looked at
>> initrd functions but was rather unsuccessful up to now. Does
>> anyone here know some details about that subject? Is it
>> possible to create and delete ramdisks at runtime with Linux?
>> Any help appreciated.
>
> mkdir $mountpoint
> mount -t tmpfs -o size=20MB $mountpoint
Thanks for the info, Wolfgang. I'm looking more for some kernel functions
to perform that action programmaticly. I could do a call like
system("mount -t tmpfs -o size=20MB $mountpoint");
But I don't like that style of programming much.
Hans
- Next message: Peter T. Breuer: "Re: Creating ramdisk at runtime"
- Previous message: Daniel Franklin: "Re: CML2 in linux kernel build system?"
- Next in thread: Peter T. Breuer: "Re: Creating ramdisk at runtime"
- Reply: Peter T. Breuer: "Re: Creating ramdisk at runtime"
- Reply: Kasper Dupont: "Re: Creating ramdisk at runtime"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|