|
ginnOS
The reference: libc, the libraries and the kernel
|
a block device on a range of memory. More...
Go to the source code of this file.
Data Structures | |
| struct | ramdisk_t |
Functions | |
| bool | ramdisk_initialize (ramdisk_t *disk, void *data, uint32_t size) |
| make a block device of 512-byte blocks on memory. | |
a block device on a range of memory.
the root filesystem image that the bootloader loads as a module becomes a block device with this driver. writes change only the memory, so they are lost at the next boot.
make a block device of 512-byte blocks on memory.
| disk | the ramdisk to set up. |
| data | the first byte of the image (a kernel pointer). |
| size | the size of the image in bytes. a part block at the end is not used. |