Records

Functions

  • void PushDriver (const void * driver, driver_runtime::Dispatcher * dispatcher)

    Adds |driver| to the thread's current call stack.

    Defined at line 97 of file ../../src/devices/bin/driver_runtime/thread_context.cc

  • void PopDriver ()

    Removes the driver at the top of the thread's current call stack.

    The stack must not be empty.

    Defined at line 113 of file ../../src/devices/bin/driver_runtime/thread_context.cc

  • const void * GetCurrentDriver ()

    Returns the driver at the top of the thread's current call stack,

    or null if the stack is empty.

    Defined at line 125 of file ../../src/devices/bin/driver_runtime/thread_context.cc

  • driver_runtime::Dispatcher * GetCurrentDispatcher ()

    Returns the dispatcher at the top of the thread's current call stack,

    or null if the stack is empty.

    Defined at line 130 of file ../../src/devices/bin/driver_runtime/thread_context.cc

  • void SetDefaultTestingDispatcher (driver_runtime::Dispatcher * dispatcher)

    Sets the default dispatcher to return in GetCurrentDispatcher

    when the driver context stack is empty. Only meant for testing.

    Defined at line 135 of file ../../src/devices/bin/driver_runtime/thread_context.cc

  • bool IsDriverInCallStack (const void * driver)

    Returns whether |driver| is in the thread's current call stack.

    Defined at line 140 of file ../../src/devices/bin/driver_runtime/thread_context.cc

  • bool IsCallStackEmpty ()

    Returns whether the thread's current call stack is empty.

    Defined at line 149 of file ../../src/devices/bin/driver_runtime/thread_context.cc

  • uint32_t GetIrqGenerationId ()

    Returns the latest generation id seen by the current thread.

    Defined at line 151 of file ../../src/devices/bin/driver_runtime/thread_context.cc

  • void SetIrqGenerationId (uint32_t id)

    Sets the latest generation id seen by the current thread.

    Defined at line 153 of file ../../src/devices/bin/driver_runtime/thread_context.cc

  • std::optional<zx_status_t> GetRoleProfileStatus ()

    Returns the result of setting the role profile for the current thread.

    May be std::nullopt if no attempt has been made to set the role profile.

    Defined at line 155 of file ../../src/devices/bin/driver_runtime/thread_context.cc

  • void SetRoleProfileStatus (zx_status_t status)

    Sets the result of setting the role profile for the current thread.

    Defined at line 157 of file ../../src/devices/bin/driver_runtime/thread_context.cc

  • zx::result<const void *> GetDriverOnTid (zx_koid_t tid)

    Defined at line 159 of file ../../src/devices/bin/driver_runtime/thread_context.cc

  • std::pair<zx_koid_t, std::atomic_int64_t *> GetTaskEntryTimeSlot ()

    Gets the thread koid and the storage for the current thread's task

    entry time slot, which will be:

    -1 if no entry time has been recorded yet.

    0 if the task has since exited its callback.

    N>0 a timestamp when this thread was last entered.

    Defined at line 167 of file ../../src/devices/bin/driver_runtime/thread_context.cc