Sound Open Firmware
Loading...
Searching...
No Matches
kernel.h
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-3-Clause
2//
3// Copyright(c) 2020 Intel Corporation. All rights reserved.
4//
5
6#ifndef __ZEPHYR_RTOS_KERNEL_H__
7#define __ZEPHYR_RTOS_KERNEL_H__
8
9#include <zephyr/kernel.h>
10
11#include <stdbool.h>
12
13static inline bool thread_is_userspace(struct k_thread *thread)
14{
15 return !!(thread->base.user_options & K_USER);
16}
17
18#endif /* __ZEPHYR_RTOS_KERNEL_H__ */
static bool thread_is_userspace(struct k_thread *thread)
Definition kernel.h:13