30.12.2013 Views

T-Kernel Specification (1.B0.02)

T-Kernel Specification (1.B0.02)

T-Kernel Specification (1.B0.02)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

6.1. KERNEL INTERNAL STATE ACQUISITION FUNCTIONS 267<br />

/*<br />

*Fixed-size memory pool status information td_ref_mpf<br />

*/<br />

typedef struct td_rmpf {<br />

VP exinf; /* extended information */<br />

ID wtsk; /* waiting task ID */<br />

INT frbcnt; /* free block count */<br />

} TD_RMPF;<br />

/*<br />

*Variable-size memory pool status information td_ref_mpl<br />

*/<br />

typedef struct td_rmpl {<br />

VP exinf; /* extended information */<br />

ID wtsk; /* waiting task ID */<br />

INT frsz; /* total free space (in bytes) */<br />

INT maxsz; /* maximum contiguous free space (in bytes) */<br />

} TD_RMPL;<br />

/*<br />

*Cyclic handler status information td_ref_cyc<br />

*/<br />

typedef struct td_rcyc {<br />

VP exinf; /* extended information */<br />

RELTIM lfttim; /* time remaining until next handler start */<br />

UINT cycstat; /* cyclic handler status */<br />

} TD_RCYC;<br />

]<br />

/*<br />

*Alarm handler status information td_ref_alm<br />

*/<br />

typedef struct td_ralm {<br />

VP exinf; /* extended information */<br />

RELTIM lfttim; /* time remaining until next handler start */<br />

UINT almstat; /* alarm handler status */<br />

} TD_RALM;<br />

/*<br />

*Subsystem status information td_ref_ssy<br />

*/<br />

typedef struct td_rssy {<br />

PRI ssypri; /* subsystem priority */<br />

INT resblksz; /* resource control block size (in bytes) */<br />

} TD_RSSY;<br />

Copyright c○ 2002, 2003 by T-Engine Forum<br />

T-<strong>Kernel</strong> <strong>1.B0.02</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!