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.

254 CHAPTER 5. T-KERNEL/SM<br />

• INT tk_get_cfs( UB *name, UB *buf, INT max )<br />

name<br />

buf<br />

max<br />

return code<br />

Name<br />

Array storing character string<br />

Maximum size of buf (in bytes)<br />

Size of defined character string information (in bytes) or error<br />

Gets character string information from system configuration information. This function gets up<br />

to max characters of character string information defined by the name designated in the name<br />

parameter and stores the acquired information in buf. If the acquired character string is shorter<br />

than max characters, it is terminated by ‘\0’ when stored. The length of the defined character<br />

string information (not including ‘\0’) is passed in the return code. If return code > max, this<br />

indicates that not all the information could be stored. By designating max = 0, the character<br />

string length can be found out without actually storing anything in buf.<br />

E NOEXS is returned if no information is defined with the name designated in the name parameter.<br />

The behavior if the information defined as name is a numeric string is indeterminate.<br />

This function can be invoked from any protection level, without being limited by the protection<br />

level from which T-<strong>Kernel</strong>/OS system call can be invoked.<br />

5.7.2 Standard System Configuration Information<br />

The following information is defined as standard system configuration information. A standard information<br />

name is prefixed by T.<br />

N: Numeric string information<br />

S: Character string information<br />

• Product information<br />

S: TSysName System name (product name)<br />

• Maximum object counts<br />

N: TMaxTskId Maximum tasks<br />

N: TMaxSemId Maximum semaphores<br />

N: TMaxFlgId Maximum event flags<br />

N: TMaxMbxId Maximum mailboxes<br />

N: TMaxMtxId Maximum mutexes<br />

N: TMaxMbfId Maximum message buffers<br />

N: TMaxPorId Maximum rendezvous ports<br />

N: TMaxMpfId Maximum fixed-size memory pools<br />

N: TMaxMplId Maximum variable-size memory pools<br />

N: TMaxCycId Maximum cyclic handlers<br />

N: TMaxAlmId Maximum alarm handlers<br />

N: TMaxResId Maximum resource groups<br />

N: TMaxSsyId Maximum subsystems<br />

N: TMaxSsyPri Maximum subsystem priorities<br />

• Other<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!