06.08.2013 Views

pSOSystem System Calls - Read

pSOSystem System Calls - Read

pSOSystem System Calls - Read

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

t_ident pSOS+ <strong>System</strong> <strong>Calls</strong><br />

Notes<br />

See Also<br />

1. Internally, the pSOS+ kernel treats a task name as a 32-bit integer. However,<br />

when the application calls the kernel through the pSOS+ C language API, it<br />

passes the task name as a four-byte character array.<br />

2. The pSOS+ kernel does not check for duplicate task names. If duplicate task<br />

names exist, a t_ident call can return the tid of any task with the duplicate<br />

name.<br />

3. If name is null (for example, (char*)0), then the tid of the calling task is<br />

returned.<br />

Multiprocessor Considerations<br />

1. t_ident() converts a task's name to its tid using a search order determined<br />

by the node input parameter, as described in <strong>pSO<strong>System</strong></strong> <strong>System</strong> Concepts.<br />

Because tasks created and exported by different nodes may not have unique<br />

names, the result of this binding may depend on the order in which the object<br />

tables are searched.<br />

2. If the master node's Global Object Table must be searched, then the pSOS+m<br />

kernel makes a t_ident() RSC to the master node.<br />

3. If the task name is null (i.e., (char*)0), then the node argument is ignored,<br />

and the t_ident() operation returns the tid of the calling task on the local<br />

node.<br />

Callable From<br />

■ Task<br />

t_create<br />

1-144 <strong>pSO<strong>System</strong></strong> <strong>System</strong> <strong>Calls</strong>

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

Saved successfully!

Ooh no, something went wrong!