06.08.2013 Views

pSOSystem System Calls - Read

pSOSystem System Calls - Read

pSOSystem System Calls - Read

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.

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

Notes<br />

See Also<br />

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

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

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

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

names exist, an rn_ident() call can return the rnid of any region with the<br />

duplicate name.<br />

3. A region must consist of physically contiguous memory locations.<br />

4. The maximum input length for a region is 32767 times the region's unit size. A<br />

length that exceeds this limit for a given unit size is treated as an error, the<br />

remedy for which is a bigger unit size.<br />

5. When the RN_DEL attribute is specified, a region can be deleted while segments<br />

are outstanding; otherwise, the pSOS+ kernel requires all segments to be<br />

returned before the region can be deleted.<br />

Multiprocessor Considerations<br />

Regions are strictly local resources, and cannot be exported. Therefore, any<br />

allocation calls must come only from the local node. However, if a region's memory<br />

is reachable from other nodes, then any segments allocated from it can be passed<br />

between nodes for direct access explicitly by the user's code.<br />

Callable From<br />

■ Task<br />

rn_ident, rn_getseg<br />

<strong>pSO<strong>System</strong></strong> <strong>System</strong> <strong>Calls</strong> 1-109<br />

1

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

Saved successfully!

Ooh no, something went wrong!