mailbox.h File Reference

Id
mailbox.h 1447 2008-08-12 19:23:34Z mschul
More...

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

Include dependency graph for mailbox.h:

This graph shows which files directly or indirectly include this file:

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.


Detailed Description

Id
mailbox.h 1447 2008-08-12 19:23:34Z mschul

Definition in file mailbox.h.


Function Documentation

syscall mailboxCreate ( ushort  count  ) 

Create a mailbox that allows count outstanding messages.

Parameters:
count maximum number of messages allowed for the mailbox
Returns:
the number of the mailbox, SYSERR if none are available

Definition at line 18 of file mailboxCreate.c.

References memget(), semcreate(), signal(), SYSERR, and wait().

Here is the call graph for this function:

syscall mailboxDelete ( mailbox  box  ) 

Delete a mailbox.

Parameters:
box the number of the mailbox to delete
Returns:
OK if the mailbox was deleted successfully, otherwise SYSERR

Definition at line 19 of file mailboxDelete.c.

References memfree(), OK, semfree(), signal(), SYSERR, and wait().

Here is the call graph for this function:

syscall mailboxInit ( void   ) 

Intializate mailbox structures.

Returns:
OK if all mailboxes are initialized succssfully

Definition at line 19 of file mailboxInit.c.

References OK, and semcreate().

Referenced by sysinit().

Here is the call graph for this function:

Here is the caller graph for this function:

syscall mailboxReceive ( mailbox  box  ) 

Receive a mailmsg from a mailbox.

Parameters:
box the number of the mailbox to receive from
Returns:
the mailmsg that was dequeded, otherwise SYSERR

Definition at line 17 of file mailboxReceive.c.

References signal(), SYSERR, and wait().

Here is the call graph for this function:

syscall mailboxSend ( mailbox  box,
int  mailmsg 
)

Send a mailmsg to a mailbox.

Parameters:
box the number of the mailbox to send to
mailmsg the mailmsg to send
Returns:
OK if the mailmsg was enqueued, otherwise SYSERR

Definition at line 18 of file mailboxSend.c.

References OK, signal(), SYSERR, and wait().

Here is the call graph for this function:


Generated on Wed Aug 27 06:08:46 2008 for Embedded XINU by  doxygen 1.5.5