class Handle

Defined at line 54 of file ../../zircon/kernel/object/include/object/handle.h

A Handle is how a specific process refers to a specific Dispatcher.

Public Methods

void Init ()

To be called once during bring up.

Defined at line 43 of file ../../zircon/kernel/object/handle.cc

const fbl::RefPtr<Dispatcher> & dispatcher ()

Returns the Dispatcher to which this instance points.

Defined at line 57 of file ../../zircon/kernel/object/include/object/handle.h

uint32_t rights ()

Returns the |rights| parameter that was provided when this instance

was created.

Defined at line 61 of file ../../zircon/kernel/object/include/object/handle.h

bool HasRights (zx_rights_t desired)

Returns true if this handle has all of the desired rights bits set.

Defined at line 64 of file ../../zircon/kernel/object/include/object/handle.h

uint32_t Count (const Dispatcher & )

Get the number of outstanding handles for a given dispatcher.

Defined at line 66 of file ../../zircon/kernel/object/handle.cc

HandleOwner Make (fbl::RefPtr<Dispatcher> dispatcher, zx_rights_t rights)

Handle should never be created by anything other than Make.

Defined at line 45 of file ../../zircon/kernel/object/handle.cc

HandleOwner Make (KernelHandle<Dispatcher> kernel_handle, zx_rights_t rights)

Defined at line 55 of file ../../zircon/kernel/object/handle.cc

Friends

class HandleLayoutCheck
class HandleTableArena