INtime® 3.1 Software - tenAsys
INtime® 3.1 Software - tenAsys
INtime® 3.1 Software - tenAsys
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 />
System call<br />
RequestControlBuffer<br />
RequestTransaction<br />
SetPortParameter<br />
Description<br />
Requests a control buffer from the service pool.<br />
Requests a TRANSACTION buffer from the service transaction<br />
pool.<br />
Sets the port parameter for the given port to a value given by<br />
the caller.<br />
RT service handlers<br />
Service handlers are subroutines invoked by the kernel to perform service-dependent<br />
functions of the system calls.<br />
For example, calling SendRtMessage causes the kernel to invoke the handler supplied<br />
by the service to handle the transmission of the message to the interface. Some of these<br />
handlers must be supplied by the service while others are optional.<br />
The control and transaction buffer pools are the static resources used for allocating<br />
internal data structures. The size of these pools is determined from parameters in the<br />
service descriptor at installation time.<br />
System call<br />
CancelTransaction<br />
CreatePort<br />
DeletePort<br />
Finish<br />
GetAttributes<br />
GetFragment<br />
Initialize<br />
SendMessage<br />
Service<br />
Description<br />
implement special actions as a result of calling<br />
CancelRtTransaction or DeleteRtPort.<br />
Invoked when CreateRtPort is called. A status of E_OK must be<br />
returned for the port to be created, else the port object is<br />
deleted and the status code is returned to the caller.<br />
Invoked when DeleteRtPort is called. It must return a status of<br />
E_OK for the port to be deleted, else the port object is deleted<br />
and the status code is returned to the caller.<br />
Ensures that any service-dependent resources are cleaned up<br />
before the service process is killed.<br />
Gets attributes from the service when an application calls<br />
GetRtServiceAttributes.<br />
Invoked when an application calls ReceiveRtFragment.<br />
Performs any service-specific initialization functions and<br />
returns a suitable status code to the caller.<br />
Implemented by all services which require a transmission<br />
function.<br />
Invoked by the service thread when an event occurs.<br />
133