PMGETSENDBUFFER(3) | PMGETSENDBUFFER(3) |
int pmGetSendBuffer(pmContext *pmc, int dest, caddr_t *bufp, size_t len);
pmContext * |
pmc |
pmContext object | |
int |
dest |
Destination node number | |
caddr_t * |
bufp |
Buffer address | |
size_t |
len |
Buffer length |
pmGetSendBuffer
() allocates a buffer to send a len
bytes of a message, if available. If pmc
is of type
PM_COMPOSITE
and a buffer is allocated, the context is
locked until pmSend
() is called.
len
is 1.
PM_SUCCESS |
Success |
ENOBUFS |
No buffer is available |
EINVAL |
Invalid destination node number |
Invalid length (len < minimum length or len
> MTU) |
|
EBUSY |
Context is already locked |