summaryrefslogtreecommitdiff
path: root/viengoos/rm.h
diff options
context:
space:
mode:
Diffstat (limited to 'viengoos/rm.h')
-rw-r--r--viengoos/rm.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/viengoos/rm.h b/viengoos/rm.h
index 04e2a06..366e759 100644
--- a/viengoos/rm.h
+++ b/viengoos/rm.h
@@ -31,6 +31,7 @@
enum rm_method_id
{
RM_write = 100,
+ RM_read,
RM_as_dump,
};
@@ -41,6 +42,8 @@ rm_method_id_string (int id)
{
case RM_write:
return "write";
+ case RM_read:
+ return "read";
case RM_as_dump:
return "as_dump";
case RM_folio_alloc:
@@ -107,6 +110,9 @@ struct io_buffer
/* Echo the character CHR on the manager console. */
RPC_SIMPLE(write, 1, 0, struct io_buffer, io)
+/* Read up to MAX characters from the console's input device. */
+RPC(read, 1, 1, int, max, struct io_buffer, io)
+
/* Dump the address space rooted at ROOT. */
RPC(as_dump, 2, 0, addr_t, principal, addr_t, root)