The getitimer callable service stores the current value of the timer specified into a structure.
Operation | Environment |
---|---|
Authorization: | Problem Program or Supervisor State, any PSW key |
Dispatchable unit mode: | Task |
Cross memory mode: | PASN = HASN |
AMODE (BPX1GTR): | 31-bit |
AMODE (BPX4GTR): | 64-bit |
ASC mode: | Primary address space control (ASC) mode |
Interrupt status: | Enabled for interrupts |
Locks: | Unlocked |
Control parameters: | All parameters must be addressable by the caller and in the primary address space. |
|
AMODE 64 callers use BPX4GTR with the same parameters. The Interval_Value_Adr parameter is a doubleword.
The ITIMER_ constants are defined in the BPXYITIM macro.
A fullword (doubleword) field that contains an address that points to a structure that is defined by the BPXYITIM macro. This structure contains the time remaining and reload values, in seconds and either microseconds or nanoseconds.
The name of a fullword in which the getitimer service returns 0 if the request is successful, or -1 if it is not successful.
Return_code | Explanation |
---|---|
EINVAL | The value specified for Interval_Type is not valid. (JRIntervalTypeInvalid). |
The name of a fullword in which the getitimer service stores the reason code. The getitimer service returns Reason_code only if Return_value is -1. Reason_code further qualifies the Return_code value.
There are no restrictions on the use of the getitimer service.
For an example using this callable service, see BPX1GTR (getitimer) example.