Add a basic IPC setup with Channel Object.
Pass a process a channel endpoint on startup that it will use to get it's initial capabilities.
This commit is contained in:
parent
b79ec07636
commit
81b925eea0
15 changed files with 341 additions and 20 deletions
|
|
@ -16,6 +16,7 @@ class Capability : public RefCounted<Capability> {
|
|||
THREAD,
|
||||
ADDRESS_SPACE,
|
||||
MEMORY_OBJECT,
|
||||
CHANNEL,
|
||||
};
|
||||
Capability(const RefPtr<KernelObject>& obj, Type type, uint64_t id,
|
||||
uint64_t permissions)
|
||||
|
|
@ -30,6 +31,7 @@ class Capability : public RefCounted<Capability> {
|
|||
RefPtr<T> obj();
|
||||
|
||||
uint64_t id() { return id_; }
|
||||
void set_id(uint64_t id) { id_ = id; }
|
||||
|
||||
bool CheckType(Type type) { return type_ == type; }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue