
Section 8 Application Interface
Rev. 1.01 Mar. 17, 2008 Page 103 of 128
REJ10J1822-0101
•
Example of implementation (for the HI7200/MP)
#define MAXTSKID 10 /* Maximum task ID */
static INT32 retval[M1]; /* Array to hold the return */
/* value in the context */
/* [0]: Non-task context */
/* [1] to [MAXTSKID]: Task ID */
INT32
*rpc_retval_adr(void)
{
INT32 *retval_adr;
ID myid;
if(sns_ctx() == TRUE)
{
/* In a non-task context */
retval_adr = retval;
}
else
{
/* In a task context */
get_tid(%myid);
retval_adr = &retval[GET_LOCALID(myid)];
}
return retval_adr;
}
Summary of Contents for Stub Generator REJ10J1822-0101
Page 4: ......
Page 6: ......
Page 12: ...vi ...
Page 16: ...Section 2 Installation Rev 1 01 Mar 17 2008 Page 4 of 128 REJ10J1822 0101 ...
Page 34: ...Section 4 Executing RPCGEN Rev 1 01 Mar 17 2008 Page 22 of 128 REJ10J1822 0101 ...
Page 60: ...Section 5 Specifications of a Config File Rev 1 01 Mar 17 2008 Page 48 of 128 REJ10J1822 0101 ...
Page 118: ...Section 9 Notes Rev 1 01 Mar 17 2008 Page 106 of 128 REJ10J1822 0101 ...
Page 131: ...Section 11 Samples Rev 1 01 Mar 17 2008 Page 119 of 128 REJ10J1822 0101 ...
Page 140: ...Section 11 Samples Rev 1 01 Mar 17 2008 Page 128 of 128 REJ10J1822 0101 ...
Page 143: ......