06.08.2013 Views

pSOSystem System Calls - Read

pSOSystem System Calls - Read

pSOSystem System Calls - Read

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

Return Code<br />

Error Codes<br />

Notes<br />

See Also<br />

data_area This argument is no longer used, but it remains to support<br />

compatibility with older drivers and/or pSOS+ application<br />

code. The pSOS+ bindings store a value into the variable<br />

pointed to by data_area. Therefore, a dummy variable still<br />

must be allocated to prevent memory corruption.<br />

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

listed below, other driver-specific errors may be returned.<br />

Hex Mnemonic Description<br />

0x101 ERR_IODN Illegal device (major) number.<br />

0x102 ERR_NODR No driver provided.<br />

0x103 ERR_IOOP Illegal I/O function number.<br />

1. The pSOS+ kernel will automatically call de_init() during system<br />

initialization if device auto-initialization is enabled. Refer to the <strong>pSO<strong>System</strong></strong><br />

<strong>System</strong> Concepts manual for further details.<br />

2. Normally de_init() is called once from the ROOT task for each configured<br />

device driver. This call is normally made before other driver services are used.<br />

Callable From<br />

■ Task<br />

de_open<br />

1-16 <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!