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.

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

rn_delete Deletes a memory region.<br />

#include <br />

unsigned long rn_delete (<br />

unsigned long rnid /* region ID */<br />

)<br />

Description<br />

Arguments<br />

Return Value<br />

Error Codes<br />

This system call deletes the memory region with the specified region ID. Unless the<br />

region was created with the RN_DEL attribute set, rn_delete() is rejected if any<br />

segments allocated from the region have not been returned. The calling task does<br />

not have to be the creator of the region to be deleted.<br />

rnid Specifies the region ID of the region to be deleted.<br />

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

Hex Mnemonic Description<br />

0x05 ERR_OBJDEL Region already deleted.<br />

0x06 ERR_OBJID rnid is incorrect; failed validity check.<br />

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

failed validity check.<br />

0x1F ERR_SEGINUSE Cannot delete — one or more segments<br />

still is use.<br />

0x27 ERR_TATRNDEL Informative only: tasks were waiting.<br />

1-110 <strong>pSO<strong>System</strong></strong> <strong>System</strong> <strong>Calls</strong>

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

Saved successfully!

Ooh no, something went wrong!