mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 00:14:32 -08:00
[kernel] Let process::add_handle take a handle argument
The process::add_handle() method takes an id and an object. This change adds an overridden version that accecpts an actual handle object to copy.
This commit is contained in:
@@ -62,9 +62,14 @@ public:
|
||||
/// Start tracking an object with a handle.
|
||||
/// \args obj The object this handle refers to
|
||||
/// \args caps The capabilities on this handle
|
||||
/// \returns The new handle for this object
|
||||
/// \returns The new handle id for this object
|
||||
j6_handle_t add_handle(kobject *obj, j6_cap_t caps);
|
||||
|
||||
/// Start tracking an object with a handle.
|
||||
/// \args hnd An existing handle to copy into this process
|
||||
/// \returns The new handle id for this object
|
||||
j6_handle_t add_handle(const handle &hnd);
|
||||
|
||||
/// Stop tracking an object with a handle.
|
||||
/// \args handle The handle that refers to the object
|
||||
/// \returns True if the handle was removed
|
||||
|
||||
Reference in New Issue
Block a user