Sound Open Firmware
Loading...
Searching...
No Matches
kernel.h File Reference

RTOS kernel threading and privilege helpers. More...

Include dependency graph for kernel.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static bool thread_is_userspace (struct k_thread *thread)
 Test if a thread is running with user-space (unprivileged) options.
 

Detailed Description

RTOS kernel threading and privilege helpers.

Function Documentation

◆ thread_is_userspace()

static bool thread_is_userspace ( struct k_thread *  thread)
inlinestatic

Test if a thread is running with user-space (unprivileged) options.

Parameters
threadPointer to the Zephyr thread control structure.
Returns
True if the thread has K_USER option set, false otherwise.