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> k_terminate<br />

Notes<br />

See Also<br />

1. k_terminate() can be used to terminate the node from which it is called. In<br />

most cases the results are the same as a k_fatal() call. However, it is<br />

implemented differently. Whereas k_fatal() immediately enters the fatal error<br />

handler, k_terminate() causes a packet to be sent to the master node, which<br />

then sends a shutdown packet to the calling node. If the calling node cannot<br />

communicate with the master, then the KI presumably calls k_fatal()<br />

anyway. It is preferable to use k_fatal() when the failed node is known to be<br />

the local node.<br />

2. A k_fatal() call made with the K_GLOBAL flag set should be used to shut<br />

down the entire system including the master node.<br />

Callable From<br />

■ Task<br />

■ ISR<br />

■ KI<br />

■ Callout<br />

k_fatal<br />

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

1

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

Saved successfully!

Ooh no, something went wrong!