Modifying a Parameter Packet

Some parameters passed to system calls use a packet format. The packet format parameters are of two kinds, either input parameters passing information to a system call (e.g., T_CTSK) or output parameters returning information from a system call (e.g., T_RTSK).

Additional information that is implementation-dependent may be added to a parameter packet. However, changing the data types and the order of information defined in the standard specification or deleting any of this information is not allowed. When implementation-dependent information is added, it must be placed after the standard defined information. When implementation-dependent information is added to a packet of input information passed to a system call (T_CTSK, etc.), if the system call is invoked while this additional information is not yet initialized (memory contents indeterminate), the system call must still function normally.

Ordinarily a flag indicating that valid values are set in the additional information is defined in the attribute flag implementation-dependent area included in the standard specification. When that flag is set (1), the additional information is to be used; and when the flag is not set (0), the additional information is not initialized (memory contents indeterminate) and the default settings are to be used. The reason for this specification is to ensure that a program developed within the scope of the standard specification will be able to run on an OS with implementation-dependent functional extensions, simply by recompiling.

Comments

Click here to Post a Comment