pjht
51bb986d76
Instead of using PIDs to identify a destination, a process can have one or more mailboxes to send messages to.
13 lines
322 B
C
13 lines
322 B
C
#ifndef KERNEL_MAILBOXES_H
|
|
#define KERNEL_MAILBOXES_H
|
|
|
|
#include <stdint.h>
|
|
#include <mailboxes.h>
|
|
|
|
uint32_t kernel_mailbox_new(uint16_t size);
|
|
void kernel_mailbox_free(uint32_t box);
|
|
void kernel_mailbox_send_msg(Message* user_msg);
|
|
void kernel_mailbox_get_msg(uint32_t box, Message* recv_msg, uint32_t buffer_sz);
|
|
|
|
#endif
|