21.01.2015 Views

INtime® 3.1 Software - tenAsys

INtime® 3.1 Software - tenAsys

INtime® 3.1 Software - tenAsys

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Appendix A: INtime software system calls<br />

Regarding INtime software system calls:<br />

• System call names correspond to related Windows functions, where appropriate.<br />

Where it is confusing to associate the function of an INtime software object with a<br />

Windows object, the names reflect the difference.<br />

For example, no Windows object corresponds closely to an INtime software region,<br />

so these are left as regions. On the other hand, INtime software alarms are<br />

encapsulated as an object which somewhat correspond to a specialized Windows<br />

event object, so this is called AlarmEvent. It does not, however, perform all the<br />

same functions as a Windows event.<br />

• To avoid confusion with similarly-named Windows calls, INtime software system<br />

call names usually include the letters ‘Rt’.<br />

• RT kernel objects and the kernel interface which differ substantially from<br />

corresponding items in the other INtime software layers, include a ‘kn’ prefix to<br />

indicate calls that map to low-level RT kernel functions and deal with low-level<br />

kernel objects.<br />

NTX calls<br />

NTX calls allow Windows applications to operate on objects created by, stored in, and<br />

controlled by the RT kernel. This allows Windows and INtime applications to<br />

communicate and coordinate their activities.<br />

Handle conversion<br />

The NTX DLL converts in transit NTXHANDLES sent to the RT kernel to RTHANDLES,<br />

and vice-versa. This is necessary as the RT kernel cannot operate on NTXHANDLES<br />

and NTX can’t operate on RTHANDLES.<br />

Figure A-1. Converting NTXHANDLES to RTHANDLES<br />

Windows<br />

NTX<br />

RT<br />

kernel<br />

If a handle passes from RT to Windows in data, ntxImportRtHandle must convert it.<br />

Object directories and object mailboxes are converted automatically.<br />

113

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

Saved successfully!

Ooh no, something went wrong!