class Handle
Defined at line 36 of file ../../src/devices/bin/driver_runtime/handle.h
A handle is how a process refers to runtime objects such as fdf_channels.
Public Methods
fdf_handle_t handle_value ()
Returns the handle value which refers to this object.
Defined at line 54 of file ../../src/devices/bin/driver_runtime/handle.h
void Handle (fbl::RefPtr<Object> object, fdf_handle_t value)
This needs to be public for |HandleTableArena|'s std::array usage.
Defined at line 57 of file ../../src/devices/bin/driver_runtime/handle.h
HandleOwner Create (fbl::RefPtr<Object> object)
Returns a unique reference to a newly created handle.
Takes ownership of |object|.
Defined at line 198 of file ../../src/devices/bin/driver_runtime/handle.cc
bool HandleExists (fdf_handle_t value)
Returns whether the handle exists in the handle table.
Defined at line 209 of file ../../src/devices/bin/driver_runtime/handle.cc
bool IsFdfHandle (zx_handle_t handle_value)
Returns whether |handle_value| is of type fdf_handle_t.
Does not do any validation on whether it is a valid fdf handle.
Defined at line 212 of file ../../src/devices/bin/driver_runtime/handle.cc
template <typename T>
zx_status_t GetObject (fdf_handle_t handle_value, fbl::RefPtr<T> * out_object)
Returns the object corresponding to |handle_value|.
Defined at line 170 of file ../../src/devices/bin/driver_runtime/handle.h
Friends
class HandleTableArena