Desktop/xinu_mips-1.0.2.tar/xinu_mips-1.0.2/system/receive.c File Reference

#include <kernel.h>
#include <device.h>
#include <proc.h>

Include dependency graph for receive.c:

Go to the source code of this file.

Functions

syscall receive (bool block)


Detailed Description

receive

Id
receive.c 226 2007-07-12 01:18:27Z mschul

Definition in file receive.c.


Function Documentation

syscall receive ( bool  block  ) 

receive - request a message from mailbox

Parameters:
block wait for message if BLOCK, return NULL if NOBLOCK and no message available
Returns:
message if available, NULL if no message in mailbox

Definition at line 19 of file receive.c.

References BLOCK, currpid, disable(), FALSE, pentry::hasmsg, pentry::msg, NULL, proctab, PRRECV, resched(), restore(), and pentry::state.

Referenced by shell().


Generated on Thu Oct 9 22:35:10 2008 for xinu by  doxygen 1.5.5