#include <semaphore.h>
#include <stddef.h>


Go to the source code of this file.
Data Structures | |
| struct | mbox |
Functions | |
| syscall | mailboxCreate (ushort) |
| Create a mailbox that allows count outstanding messages. | |
| syscall | mailboxDelete (mailbox) |
| Delete a mailbox. | |
| syscall | mailboxInit (void) |
| Intializate mailbox structures. | |
| syscall | mailboxReceive (mailbox) |
| Receive a mailmsg from a mailbox. | |
| syscall | mailboxSend (mailbox, int) |
| Send a mailmsg to a mailbox. | |
Definition in file mailbox.h.
Create a mailbox that allows count outstanding messages.
| count | maximum number of messages allowed for the mailbox |
Definition at line 18 of file mailboxCreate.c.
References memget(), semcreate(), signal(), SYSERR, and wait().

| syscall mailboxDelete | ( | mailbox | box | ) |
| syscall mailboxInit | ( | void | ) |
Intializate mailbox structures.
Definition at line 19 of file mailboxInit.c.
References OK, and semcreate().
Referenced by sysinit().


| syscall mailboxReceive | ( | mailbox | box | ) |
Receive a mailmsg from a mailbox.
| box | the number of the mailbox to receive from |
Definition at line 17 of file mailboxReceive.c.
References signal(), SYSERR, and wait().

| syscall mailboxSend | ( | mailbox | box, | |
| int | mailmsg | |||
| ) |
1.5.5