Download pSOSystem System Calls

Transcript
pSOS+ System Calls
pt_create
PT_GLOBAL /
PT_LOCAL
Partition is globally addressable by other nodes /
partition can be addressed only the by local node.
The single-processor version of the pSOS+ kernel
ignores PT_GLOBAL.
PT_DEL /
PT_NODEL
Deletion of the partition with pt_delete() is
enabled, even if one or more buffers are allocated.
Deletion of the partition is prohibited unless all
buffers have been freed.
ptid
Points to the variable where pt_create() stores the partition ID of
the named partition.
nbuf
Points to the variable where pt_create() stores the number of
actual buffers in the partition.
Return Value
This call returns 0 on success or an error code on failure.
Error Codes
Hex
Mnemonic
Description
0x08
ERR_OBJTFULL
Node's object table full.
0x28
ERR_PTADDR
Starting address not on long word
boundary.
0x29
ERR_BUFSIZE
Buffer size not power of 2, or less
than 4 bytes.
0x2A
ERR_TINYPT
Length too small to hold the partition
control information.
Notes
1. Internally, the pSOS+ kernel treats a partition name as a 32-bit integer.
However, when the application calls the kernel through the pSOS+ C language
API, it passes the partition name as a four-byte character array.
2. The pSOS+ kernel does not check for duplicate partition names. If duplicate
names exist, a pt_ident() call can return the ptid of any partition with the
duplicate name.
pSOSystem System Calls
1-49
1