-   
 
   ref_mbx
   iref_mbx
  
    -   
  
 
 ER      ref_mbx (ID mbxid, T_RMBX *pk_rmbx);
 ER      iref_mbx (ID mbxid, T_RMBX *pk_rmbx);
 
  
  
    | 
 | 
    
 | 
    
 | 
  
  
    | 
 | 
    
 ID      mbxid;
 
 | 
    
 ID number of the mailbox.
  
 | 
  
  
    | 
 | 
    
 T_RMBX  *pk_rmbx;
 
 | 
    
 Pointer to the packet returning the mailbox state.
  
 | 
  
 
 [Mailbox state packet: T_RMBX]
 
 
  
  
    
 typedef struct  t_rmbx {
     ID      wtskid;         /*Existence of waiting task*/
     T_MSG   *pk_msg;        /*Existence of waiting message*/
 } T_RMBX;
 
 | 
  
 
 Stores mailbox state packet (ID number of the task at the head of the wait queue, start address of the message packet at the head of the wait queue) of the mailbox specified by parameter 
mbxid in the area specified by parameter 
pk_rmbx.
 
 -	 
wtskid
Stores whether a task is queued to the mailbox wait queue.
 
 Value:	ID number of the task at the head of the wait queue
 
 -	 
pk_msg
Stores whether a message is queued to the mailbox wait queue.
 
 NULL:	No applicable message
 
 Value:	Start address of the message packet at the head of the wait queue
 
 
  
  
    | 
 | 
    
 | 
    
 | 
  
  
    | 
 | 
    
 | 
    
 | 
  
  
    | 
 | 
    
 | 
    
 | 
  
  
    | 
 | 
    
 | 
    
 | 
  
  
    | 
 | 
    
 | 
    
 -	 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_mbx is issued from task or the ref_mbx 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_mbx)
  
 -	 The operand-write access to the area indicated by  pk_rmbx has not been permitted to the invoking task.
  
 | 
  
  
    | 
 | 
    
 | 
    
 -	 The mailbox specified by  mbxid does not exist.
  
 |