[Previous] [Contents] [Index] [Next]

Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

asyncmsg_malloc()

Allocate a message buffer for sending

Synopsis:

#include <sys/neutrino.h>
#include <sys/asyncmsg.h>

void *asyncmsg_malloc(size_t size)

Arguments:

size
The size of the message.

Library:

libasyncmsg

Use the -l asyncmsg option to qcc to link against this library.

Description:

The asyncmsg_malloc() function allocates a message buffer for sending.

Returns:

EOK on success; or -1 if an error occurred (errno is set).

Errors:

ENOMEM
There's not enough memory.

Classification:

QNX Neutrino

Safety:
Cancellation point No
Interrupt handler No
Signal handler No
Thread Yes

See also:

asyncmsg_channel_create(), asyncmsg_channel_destroy(), asyncmsg_connect_attach(), asyncmsg_connect_attr(), asyncmsg_connect_detach(), asyncmsg_flush(), asyncmsg_free(), asyncmsg_get(), asyncmsg_put(), asyncmsg_putv()

Asynchronous Messaging Technote


[Previous] [Contents] [Index] [Next]