Files | |
| file | rd.c |
| Initial RAM disk for HelenOS. | |
Defines | |
| #define | NAME "rd" |
Functions | |
| int | main (int argc, char **argv) |
| static void | rd_connection (ipc_callid_t iid, ipc_call_t *icall) |
| Handle one connection to ramdisk. | |
| static bool | rd_init (void) |
| Prepare the ramdisk image for operation. | |
| static int | rd_read_blocks (uint64_t ba, size_t cnt, void *buf) |
| Read blocks from the device. | |
| static int | rd_write_blocks (uint64_t ba, size_t cnt, const void *buf) |
| Write blocks to the device. | |
Variables | |
| static const size_t | block_size = 512 |
| Block size. | |
| static void * | rd_addr |
| Pointer to the ramdisk's image. | |
| fibril_rwlock_t | rd_lock |
| This rwlock protects the ramdisk's data. | |
| static size_t | rd_size |
| Size of the ramdisk. | |
| static void rd_connection | ( | ipc_callid_t | iid, | |
| ipc_call_t * | icall | |||
| ) | [static] |
1.4.7