06.08.2013 Views

pSOSystem System Calls - Read

pSOSystem System Calls - Read

pSOSystem System Calls - Read

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

pSOS+ <strong>System</strong> <strong>Calls</strong> pt_delete<br />

pt_delete Deletes a memory partition.<br />

#include <br />

unsigned long pt_delete (<br />

unsigned long ptid /* partition identifier */<br />

)<br />

Description<br />

Arguments<br />

Return Value<br />

Error Codes<br />

This system call deletes a memory partition specified by its ID. Unless the PT_DEL<br />

attribute was specified when the partition was created, pt_delete() returns an<br />

error if any buffers allocated from the partition have not been returned.<br />

The calling task does not have to be the creator (parent) of the partition to be<br />

deleted. However, a partition must be deleted from the node on which it was created.<br />

ptid Specifies the partition identifier.<br />

This system call returns 0 on success or an error code on failure.<br />

Hex Mnemonic Description<br />

0x05 ERR_OBJDEL Partition has been deleted.<br />

0x06 ERR_OBJID ptid is incorrect, failed validity<br />

check.<br />

0x07 ERR_OBJTYPE Object type doesn’t match object ID;<br />

failed validity check.<br />

0x2B ERR_BUFINUSE Cannot delete; one or more buffers<br />

still in use.<br />

0x53 ERR_ILLRSC Partition not created from this node.<br />

<strong>pSO<strong>System</strong></strong> <strong>System</strong> <strong>Calls</strong> 1-51<br />

1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!