summaryrefslogtreecommitdiffstats
path: root/sys/message.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/message.h')
-rw-r--r--sys/message.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/sys/message.h b/sys/message.h
new file mode 100644
index 0000000..2ae6e03
--- /dev/null
+++ b/sys/message.h
@@ -0,0 +1,13 @@
+#ifndef _JOVE_SYS_MESSAGE_H
+#define _JOVE_SYS_MESSAGE_H 1
+
+#include "hal/obj.h"
+
+#define MESSAGE_MAX_PAGES (1<<12)
+#define MESSAGE_MAX_BYTES (MESSAGE_MAX_PAGES * 0x1000)
+#define MESSAGE_ALIGN 0x1000
+
+void *message_data(jove_owned_obj_t *obj);
+size_t message_len(jove_owned_obj_t *obj);
+
+#endif