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
12
#ifndef __ZEPHYR_RTOS_KERNEL_H__
13
#define __ZEPHYR_RTOS_KERNEL_H__
14
15
#include <zephyr/kernel.h>
16
17
#include <stdbool.h>
18
24
static
inline
bool
thread_is_userspace
(
struct
k_thread *thread)
25
{
26
return
!!(thread->base.user_options & K_USER);
27
}
28
29
#endif
/* __ZEPHYR_RTOS_KERNEL_H__ */
thread_is_userspace
static bool thread_is_userspace(struct k_thread *thread)
Test if a thread is running with user-space (unprivileged) options.
Definition
kernel.h:24
zephyr
include
rtos
kernel.h
Generated by
1.9.8