CCS Capabilities
To build the DCCS, we will assume certain primitive capabilities in the CCS. The invocations below are represented for simplicity rather than for efficiency or practicality. In practice, capabilities generally have more highly optimized invocations with various error returns, etc.. To characterize a capability, it suffices to describe what it returns as a function of what it is passed. In the notation used below, the passed parameter list is followed by a ">" and then the returned parameter list. In each parameter list the data parameters are followed by a "" and then the capability parameters.
1. File Capability
a. "Read", index; > data;
"Read" the data at the specified index. "Read" and the index are passed. Data is returned.
b. "Write", index, data; > ;
Write the data into the area at the specified index. "Write", the index, and the data are passed. Nothing is returned.
2. Directory Capability
a. "Take", index; > ; capability
"Take" the capability from the specified index in the directory. "Take" and the index are passed. The capability is returned.
b. "Give", index; capability> ;
"Give" the capability to the directory at the index specified. "Give" and the index are passed information. The capability is also passed. Nothing is returned.
c. "Find"; capability> result, index;
A directory, like a process C-list, is a repository for capabilities. The first two invocations are analogous to the two file invocations presented except that they involve capability parameters moved between directory and C-list instead of between file and memory. The last invocation searches the directory for the passed capability. If an identical capability is found, "Yes" and the smallest index of such a capability are returned. Otherwise "No" and 0 are returned.
3. Nil Capability
When a directory is initially created, it contains only nil capabilities. Nil always returns "Empty".
4. Process Capability
a. "Read", index; > data;
b. "Write", index, data; > ;
c. "Take", index; > ; capability
d. "Give", index; capability> ;
e. "Find"; capability> result, index;
f. "Start"; > ;
g. "Stop"; > ;
The a. and b. invocations go to the process's memory space. C., d., and e. go to its C-list. F. and g. start and stop process execution.