rtems_status_code rtems_partition_get_buffer( rtems_id id, void **buffer );
RTEMS_SUCCESSFUL
- buffer obtained successfully
RTEMS_INVALID_ADDRESS
- buffer
is NULL
RTEMS_INVALID_ID
- invalid partition id
RTEMS_UNSATISFIED
- all buffers are allocated
This directive allows a buffer to be obtained from the partition specified in id. The address of the allocated buffer is returned in buffer.
This directive will not cause the running task to be preempted.
All buffers begin on a four byte boundary.
A task cannot wait on a buffer to become available.
Getting a buffer from a global partition which does not reside on the local node will generate a request telling the remote node to allocate a buffer from the specified partition.
Copyright © 1988-2008 OAR Corporation