procedure Partition_Delete ( ID : in RTEMS.ID; Result : out RTEMS.Status_Codes );
RTEMS.SUCCESSFUL
- partition deleted successfully
RTEMS.INVALID_ID
- invalid partition id
RTEMS.RESOURCE_IN_USE
- buffers still in use
RTEMS.ILLEGAL_ON_REMOTE_OBJECT
- cannot delete remote partition
This directive deletes the partition specified by id. The partition cannot be deleted if any of its buffers are still allocated. The PTCB for the deleted partition is reclaimed by RTEMS.
This directive will not cause the calling task to be preempted.
The calling task does not have to be the task that created the partition. Any local task that knows the partition id can delete the partition.
When a global partition is deleted, the partition id must be transmitted to every node in the system for deletion from the local copy of the global object table.
The partition must reside on the local node, even if
the partition was created with the RTEMS.GLOBAL
option.
Copyright © 1988-2008 OAR Corporation