#include <ipc/services.h>
#include <ipc/ns.h>
#include <sysinfo.h>
#include <as.h>
#include <ddi.h>
#include <align.h>
#include <bool.h>
#include <errno.h>
#include <async.h>
#include <fibril_synch.h>
#include <stdio.h>
#include <devmap.h>
#include <ipc/bd.h>
#include <macros.h>
Go to the source code of this file.
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. |
Definition in file rd.c.