#include <kernel.h>
#include <device.h>
#include <proc.h>
Go to the source code of this file.
Functions | |
syscall | receive (bool block) |
Definition in file receive.c.
syscall receive | ( | bool | block | ) |
receive - request a message from mailbox
block | wait for message if BLOCK, return NULL if NOBLOCK and no message available |
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().