-   
 
 ref_flg
 iref_flg
 
-   
 
 Reference eventflag state.
 
 ER      ref_flg (ID flgid, T_RFLG *pk_rflg);
 ER      iref_flg (ID flgid, T_RFLG *pk_rflg);
 
| 
 | 
 | 
 | 
| 
 | 
 ID      flgid;
 
 | 
 ID number of the eventflag.
  
 | 
| 
 | 
 T_RFLG  *pk_rflg;
 
 | 
 Pointer to the packet returning the eventflag state.
  
 | 
 
 [Eventflag state packet: T_RFLG]
 
 
 typedef struct  t_rflg {
     ID      wtskid;         /*Existence of waiting task*/
     FLGPTN  flgptn;         /*Current bit pattern*/
 } T_RFLG;
 
 | 
 
 Stores eventflag state packet (ID number of the task at the head of the wait queue, current bit pattern, etc.) of the eventflag specified by parameter 
flgid in the area specified by parameter 
pk_rflg.
 
 -	 
wtskid
Stores whether a task is queued to the event flag wait queue.
 
 Value:	ID number of the task at the head of the wait queue
 
 -	 
flgptn
Stores the current bit pattern.
 
 
| 
 | 
 | 
 | 
| 
 | 
 | 
 | 
| 
 | 
 | 
 | 
| 
 | 
 | 
 | 
| 
 | 
 | 
 -	 This service call was issued in the CPU locked state.
  
 -	 This service call was issued in the status "PSW.IPL > kernel interrupt mask level".
  
 Note	 When the iref_flg is issued from task or the ref_flg is issued from non-task, the context error is not detected and normal operation of the system is not guaranteed.
  
 | 
| 
 | 
 | 
 Memory access violation. (only for ref_flg)
  
 -	 The operand-write access to the area indicated by  pk_rflg has not been permitted to the invoking task.
  
 | 
| 
 | 
 | 
 -	 The eventflag specified by  flgid does not exist.
  
 |