kernel: migrate includes to <zephyr/...>

In order to bring consistency in-tree, migrate all kernel code to the
new prefix <zephyr/...>. Note that the conversion has been scripted,
refer to zephyrproject-rtos#45388 for more details.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
Gerard Marull-Paretas 2022-05-06 11:04:23 +02:00 committed by Carles Cufí
commit cffefc818d
45 changed files with 258 additions and 258 deletions

View file

@ -18,11 +18,11 @@
* (originally from x86's atomic.c) * (originally from x86's atomic.c)
*/ */
#include <toolchain.h> #include <zephyr/toolchain.h>
#include <arch/cpu.h> #include <zephyr/arch/cpu.h>
#include <spinlock.h> #include <zephyr/spinlock.h>
#include <sys/atomic.h> #include <zephyr/sys/atomic.h>
#include <kernel_structs.h> #include <zephyr/kernel_structs.h>
/* Single global spinlock for atomic operations. This is fallback /* Single global spinlock for atomic operations. This is fallback
* code, not performance sensitive. At least by not using irq_lock() * code, not performance sensitive. At least by not using irq_lock()
@ -37,7 +37,7 @@ static struct k_spinlock lock;
* forbidden. * forbidden.
*/ */
#ifdef CONFIG_USERSPACE #ifdef CONFIG_USERSPACE
#include <syscall_handler.h> #include <zephyr/syscall_handler.h>
#define ATOMIC_SYSCALL_HANDLER_TARGET(name) \ #define ATOMIC_SYSCALL_HANDLER_TARGET(name) \
static inline atomic_val_t z_vrfy_##name(atomic_t *target) \ static inline atomic_val_t z_vrfy_##name(atomic_t *target) \

View file

@ -4,10 +4,10 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#include <kernel.h> #include <zephyr/kernel.h>
#include <sys/util.h> #include <zephyr/sys/util.h>
#include <init.h> #include <zephyr/init.h>
#include <device.h> #include <zephyr/device.h>
#include <version.h> #include <version.h>
/* boot banner items */ /* boot banner items */

View file

@ -4,8 +4,8 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#include <cache.h> #include <zephyr/cache.h>
#include <syscall_handler.h> #include <zephyr/syscall_handler.h>
static inline int z_vrfy_sys_cache_data_all(int op) static inline int z_vrfy_sys_cache_data_all(int op)
{ {

View file

@ -16,13 +16,13 @@
* function __stack_chk_fail and global variable __stack_chk_guard. * function __stack_chk_fail and global variable __stack_chk_guard.
*/ */
#include <toolchain.h> /* compiler specific configurations */ #include <zephyr/toolchain.h> /* compiler specific configurations */
#include <kernel_structs.h> #include <zephyr/kernel_structs.h>
#include <toolchain.h> #include <zephyr/toolchain.h>
#include <linker/sections.h> #include <zephyr/linker/sections.h>
#include <kernel.h> #include <zephyr/kernel.h>
#include <app_memory/app_memdomain.h> #include <zephyr/app_memory/app_memdomain.h>
/** /**
* *

View file

@ -4,12 +4,12 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#include <kernel.h> #include <zephyr/kernel.h>
#include <kernel_structs.h> #include <zephyr/kernel_structs.h>
#include <toolchain.h> #include <zephyr/toolchain.h>
#include <ksched.h> #include <ksched.h>
#include <wait_q.h> #include <zephyr/wait_q.h>
#include <syscall_handler.h> #include <zephyr/syscall_handler.h>
static struct k_spinlock lock; static struct k_spinlock lock;

View file

@ -5,9 +5,9 @@
*/ */
#include <string.h> #include <string.h>
#include <device.h> #include <zephyr/device.h>
#include <sys/atomic.h> #include <zephyr/sys/atomic.h>
#include <syscall_handler.h> #include <zephyr/syscall_handler.h>
extern const struct init_entry __init_start[]; extern const struct init_entry __init_start[];
extern const struct init_entry __init_PRE_KERNEL_1_start[]; extern const struct init_entry __init_PRE_KERNEL_1_start[];

View file

@ -12,8 +12,8 @@
* context switching. * context switching.
*/ */
#include <kernel.h> #include <zephyr/kernel.h>
#include <syscall_handler.h> #include <zephyr/syscall_handler.h>
/* /*
* Define _k_neg_eagain for use in assembly files as errno.h is * Define _k_neg_eagain for use in assembly files as errno.h is

View file

@ -21,17 +21,17 @@
* @brief Kernel event object * @brief Kernel event object
*/ */
#include <kernel.h> #include <zephyr/kernel.h>
#include <kernel_structs.h> #include <zephyr/kernel_structs.h>
#include <toolchain.h> #include <zephyr/toolchain.h>
#include <wait_q.h> #include <zephyr/wait_q.h>
#include <sys/dlist.h> #include <zephyr/sys/dlist.h>
#include <ksched.h> #include <ksched.h>
#include <init.h> #include <zephyr/init.h>
#include <syscall_handler.h> #include <zephyr/syscall_handler.h>
#include <tracing/tracing.h> #include <zephyr/tracing/tracing.h>
#include <sys/check.h> #include <zephyr/sys/check.h>
#define K_EVENT_WAIT_ANY 0x00 /* Wait for any events */ #define K_EVENT_WAIT_ANY 0x00 /* Wait for any events */
#define K_EVENT_WAIT_ALL 0x01 /* Wait for all events */ #define K_EVENT_WAIT_ALL 0x01 /* Wait for all events */

View file

@ -4,16 +4,16 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#include <kernel.h> #include <zephyr/kernel.h>
#include <kernel_internal.h> #include <kernel_internal.h>
#include <kernel_structs.h> #include <zephyr/kernel_structs.h>
#include <sys/__assert.h> #include <zephyr/sys/__assert.h>
#include <arch/cpu.h> #include <zephyr/arch/cpu.h>
#include <logging/log_ctrl.h> #include <zephyr/logging/log_ctrl.h>
#include <logging/log.h> #include <zephyr/logging/log.h>
#include <fatal.h> #include <zephyr/fatal.h>
#include <debug/coredump.h> #include <zephyr/debug/coredump.h>
LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL); LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);

View file

@ -4,12 +4,12 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#include <kernel.h> #include <zephyr/kernel.h>
#include <kernel_structs.h> #include <zephyr/kernel_structs.h>
#include <spinlock.h> #include <zephyr/spinlock.h>
#include <kswap.h> #include <kswap.h>
#include <syscall_handler.h> #include <zephyr/syscall_handler.h>
#include <init.h> #include <zephyr/init.h>
#include <ksched.h> #include <ksched.h>
static struct z_futex_data *k_futex_find_data(struct k_futex *futex) static struct z_futex_data *k_futex_find_data(struct k_futex *futex)

View file

@ -4,14 +4,14 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#include <kernel.h> #include <zephyr/kernel.h>
#include <toolchain.h> #include <zephyr/toolchain.h>
#include <linker/sections.h> #include <zephyr/linker/sections.h>
#include <drivers/timer/system_timer.h> #include <zephyr/drivers/timer/system_timer.h>
#include <wait_q.h> #include <zephyr/wait_q.h>
#include <pm/pm.h> #include <zephyr/pm/pm.h>
#include <stdbool.h> #include <stdbool.h>
#include <logging/log.h> #include <zephyr/logging/log.h>
#include <ksched.h> #include <ksched.h>
#include <kswap.h> #include <kswap.h>

View file

@ -50,7 +50,7 @@
* /@ include struct definitions for which offsets symbols are to be * /@ include struct definitions for which offsets symbols are to be
* generated @/ * generated @/
* *
* #include <kernel_structs.h> * #include <zephyr/kernel_structs.h>
* GEN_ABS_SYM_BEGIN (_OffsetAbsSyms) /@ the name parameter is arbitrary @/ * GEN_ABS_SYM_BEGIN (_OffsetAbsSyms) /@ the name parameter is arbitrary @/
* /@ _kernel_t structure member offsets @/ * /@ _kernel_t structure member offsets @/
* *
@ -76,7 +76,7 @@
#ifndef ZEPHYR_KERNEL_INCLUDE_GEN_OFFSET_H_ #ifndef ZEPHYR_KERNEL_INCLUDE_GEN_OFFSET_H_
#define ZEPHYR_KERNEL_INCLUDE_GEN_OFFSET_H_ #define ZEPHYR_KERNEL_INCLUDE_GEN_OFFSET_H_
#include <toolchain.h> #include <zephyr/toolchain.h>
#include <stddef.h> #include <stddef.h>
/* definition of the GEN_OFFSET_SYM() macros is toolchain independent */ /* definition of the GEN_OFFSET_SYM() macros is toolchain independent */

View file

@ -17,8 +17,8 @@
#ifndef ZEPHYR_KERNEL_INCLUDE_KERNEL_ARCH_INTERFACE_H_ #ifndef ZEPHYR_KERNEL_INCLUDE_KERNEL_ARCH_INTERFACE_H_
#define ZEPHYR_KERNEL_INCLUDE_KERNEL_ARCH_INTERFACE_H_ #define ZEPHYR_KERNEL_INCLUDE_KERNEL_ARCH_INTERFACE_H_
#include <kernel.h> #include <zephyr/kernel.h>
#include <sys/arch_interface.h> #include <zephyr/sys/arch_interface.h>
#ifndef _ASMLANGUAGE #ifndef _ASMLANGUAGE

View file

@ -14,7 +14,7 @@
#ifndef ZEPHYR_KERNEL_INCLUDE_KERNEL_INTERNAL_H_ #ifndef ZEPHYR_KERNEL_INCLUDE_KERNEL_INTERNAL_H_
#define ZEPHYR_KERNEL_INCLUDE_KERNEL_INTERNAL_H_ #define ZEPHYR_KERNEL_INCLUDE_KERNEL_INTERNAL_H_
#include <kernel.h> #include <zephyr/kernel.h>
#include <kernel_arch_interface.h> #include <kernel_arch_interface.h>
#include <string.h> #include <string.h>

View file

@ -3,9 +3,9 @@
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#include <device.h> #include <zephyr/device.h>
#include <pm/device.h> #include <zephyr/pm/device.h>
#ifndef ZEPHYR_KERNEL_INCLUDE_KERNEL_OFFSETS_H_ #ifndef ZEPHYR_KERNEL_INCLUDE_KERNEL_OFFSETS_H_
#define ZEPHYR_KERNEL_INCLUDE_KERNEL_OFFSETS_H_ #define ZEPHYR_KERNEL_INCLUDE_KERNEL_OFFSETS_H_

View file

@ -14,7 +14,7 @@
#ifndef ZEPHYR_KERNEL_INCLUDE_KERNEL_TLS_H_ #ifndef ZEPHYR_KERNEL_INCLUDE_KERNEL_TLS_H_
#define ZEPHYR_KERNEL_INCLUDE_KERNEL_TLS_H_ #define ZEPHYR_KERNEL_INCLUDE_KERNEL_TLS_H_
#include <linker/linker-defs.h> #include <zephyr/linker/linker-defs.h>
/** /**
* @brief Return the total size of TLS data/bss areas * @brief Return the total size of TLS data/bss areas

View file

@ -7,10 +7,10 @@
#ifndef ZEPHYR_KERNEL_INCLUDE_KSCHED_H_ #ifndef ZEPHYR_KERNEL_INCLUDE_KSCHED_H_
#define ZEPHYR_KERNEL_INCLUDE_KSCHED_H_ #define ZEPHYR_KERNEL_INCLUDE_KSCHED_H_
#include <kernel_structs.h> #include <zephyr/kernel_structs.h>
#include <kernel_internal.h> #include <kernel_internal.h>
#include <timeout_q.h> #include <zephyr/timeout_q.h>
#include <tracing/tracing.h> #include <zephyr/tracing/tracing.h>
#include <stdbool.h> #include <stdbool.h>
BUILD_ASSERT(K_LOWEST_APPLICATION_THREAD_PRIO BUILD_ASSERT(K_LOWEST_APPLICATION_THREAD_PRIO

View file

@ -7,7 +7,7 @@
#define ZEPHYR_KERNEL_INCLUDE_KSWAP_H_ #define ZEPHYR_KERNEL_INCLUDE_KSWAP_H_
#include <ksched.h> #include <ksched.h>
#include <spinlock.h> #include <zephyr/spinlock.h>
#include <kernel_arch_func.h> #include <kernel_arch_func.h>
#ifdef CONFIG_STACK_SENTINEL #ifdef CONFIG_STACK_SENTINEL

View file

@ -9,11 +9,11 @@
#ifdef CONFIG_MMU #ifdef CONFIG_MMU
#include <stdint.h> #include <stdint.h>
#include <sys/slist.h> #include <zephyr/sys/slist.h>
#include <sys/__assert.h> #include <zephyr/sys/__assert.h>
#include <sys/util.h> #include <zephyr/sys/util.h>
#include <sys/mem_manage.h> #include <zephyr/sys/mem_manage.h>
#include <linker/linker-defs.h> #include <zephyr/linker/linker-defs.h>
/* /*
* At present, page frame management is only done for main system RAM, * At present, page frame management is only done for main system RAM,

View file

@ -11,30 +11,30 @@
* This module contains routines that are used to initialize the kernel. * This module contains routines that are used to initialize the kernel.
*/ */
#include <zephyr.h> #include <zephyr/zephyr.h>
#include <offsets_short.h> #include <offsets_short.h>
#include <kernel.h> #include <zephyr/kernel.h>
#include <sys/printk.h> #include <zephyr/sys/printk.h>
#include <debug/stack.h> #include <zephyr/debug/stack.h>
#include <random/rand32.h> #include <zephyr/random/rand32.h>
#include <linker/sections.h> #include <zephyr/linker/sections.h>
#include <toolchain.h> #include <zephyr/toolchain.h>
#include <kernel_structs.h> #include <zephyr/kernel_structs.h>
#include <device.h> #include <zephyr/device.h>
#include <init.h> #include <zephyr/init.h>
#include <linker/linker-defs.h> #include <zephyr/linker/linker-defs.h>
#include <ksched.h> #include <ksched.h>
#include <string.h> #include <string.h>
#include <sys/dlist.h> #include <zephyr/sys/dlist.h>
#include <kernel_internal.h> #include <kernel_internal.h>
#include <drivers/entropy.h> #include <zephyr/drivers/entropy.h>
#include <logging/log_ctrl.h> #include <zephyr/logging/log_ctrl.h>
#include <tracing/tracing.h> #include <zephyr/tracing/tracing.h>
#include <stdbool.h> #include <stdbool.h>
#include <debug/gcov.h> #include <zephyr/debug/gcov.h>
#include <kswap.h> #include <kswap.h>
#include <timing/timing.h> #include <zephyr/timing/timing.h>
#include <logging/log.h> #include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(os, CONFIG_KERNEL_LOG_LEVEL); LOG_MODULE_REGISTER(os, CONFIG_KERNEL_LOG_LEVEL);
/* the only struct z_kernel instance */ /* the only struct z_kernel instance */

View file

@ -4,11 +4,11 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#include <kernel.h> #include <zephyr/kernel.h>
#include <ksched.h> #include <ksched.h>
#include <wait_q.h> #include <zephyr/wait_q.h>
#include <init.h> #include <zephyr/init.h>
#include <linker/linker-defs.h> #include <zephyr/linker/linker-defs.h>
void k_heap_init(struct k_heap *h, void *mem, size_t bytes) void k_heap_init(struct k_heap *h, void *mem, size_t bytes)
{ {

View file

@ -8,16 +8,16 @@
* @brief Mailboxes. * @brief Mailboxes.
*/ */
#include <kernel.h> #include <zephyr/kernel.h>
#include <kernel_structs.h> #include <zephyr/kernel_structs.h>
#include <toolchain.h> #include <zephyr/toolchain.h>
#include <linker/sections.h> #include <zephyr/linker/sections.h>
#include <string.h> #include <string.h>
#include <ksched.h> #include <ksched.h>
#include <wait_q.h> #include <zephyr/wait_q.h>
#include <sys/dlist.h> #include <zephyr/sys/dlist.h>
#include <init.h> #include <zephyr/init.h>
#if (CONFIG_NUM_MBOX_ASYNC_MSGS > 0) #if (CONFIG_NUM_MBOX_ASYNC_MSGS > 0)

View file

@ -4,16 +4,16 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#include <init.h> #include <zephyr/init.h>
#include <kernel.h> #include <zephyr/kernel.h>
#include <kernel_structs.h> #include <zephyr/kernel_structs.h>
#include <kernel_internal.h> #include <kernel_internal.h>
#include <sys/__assert.h> #include <zephyr/sys/__assert.h>
#include <stdbool.h> #include <stdbool.h>
#include <spinlock.h> #include <zephyr/spinlock.h>
#include <sys/check.h> #include <zephyr/sys/check.h>
#include <sys/libc-hooks.h> #include <zephyr/sys/libc-hooks.h>
#include <logging/log.h> #include <zephyr/logging/log.h>
LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL); LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);
struct k_spinlock z_mem_domain_lock; struct k_spinlock z_mem_domain_lock;

View file

@ -4,16 +4,16 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#include <kernel.h> #include <zephyr/kernel.h>
#include <kernel_structs.h> #include <zephyr/kernel_structs.h>
#include <toolchain.h> #include <zephyr/toolchain.h>
#include <linker/sections.h> #include <zephyr/linker/sections.h>
#include <wait_q.h> #include <zephyr/wait_q.h>
#include <sys/dlist.h> #include <zephyr/sys/dlist.h>
#include <ksched.h> #include <ksched.h>
#include <init.h> #include <zephyr/init.h>
#include <sys/check.h> #include <zephyr/sys/check.h>
/** /**
* @brief Initialize kernel memory slab subsystem. * @brief Initialize kernel memory slab subsystem.

View file

@ -4,10 +4,10 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#include <kernel.h> #include <zephyr/kernel.h>
#include <string.h> #include <string.h>
#include <sys/math_extras.h> #include <zephyr/sys/math_extras.h>
#include <sys/util.h> #include <zephyr/sys/util.h>
static void *z_heap_aligned_alloc(struct k_heap *heap, size_t align, size_t size) static void *z_heap_aligned_alloc(struct k_heap *heap, size_t align, size_t size)
{ {

View file

@ -8,16 +8,16 @@
#include <stdint.h> #include <stdint.h>
#include <kernel_arch_interface.h> #include <kernel_arch_interface.h>
#include <spinlock.h> #include <zephyr/spinlock.h>
#include <mmu.h> #include <mmu.h>
#include <init.h> #include <zephyr/init.h>
#include <kernel_internal.h> #include <kernel_internal.h>
#include <syscall_handler.h> #include <zephyr/syscall_handler.h>
#include <toolchain.h> #include <zephyr/toolchain.h>
#include <linker/linker-defs.h> #include <zephyr/linker/linker-defs.h>
#include <sys/bitarray.h> #include <zephyr/sys/bitarray.h>
#include <timing/timing.h> #include <zephyr/timing/timing.h>
#include <logging/log.h> #include <zephyr/logging/log.h>
LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL); LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);
/* /*

View file

@ -10,20 +10,20 @@
*/ */
#include <kernel.h> #include <zephyr/kernel.h>
#include <kernel_structs.h> #include <zephyr/kernel_structs.h>
#include <toolchain.h> #include <zephyr/toolchain.h>
#include <linker/sections.h> #include <zephyr/linker/sections.h>
#include <string.h> #include <string.h>
#include <ksched.h> #include <ksched.h>
#include <wait_q.h> #include <zephyr/wait_q.h>
#include <sys/dlist.h> #include <zephyr/sys/dlist.h>
#include <sys/math_extras.h> #include <zephyr/sys/math_extras.h>
#include <init.h> #include <zephyr/init.h>
#include <syscall_handler.h> #include <zephyr/syscall_handler.h>
#include <kernel_internal.h> #include <kernel_internal.h>
#include <sys/check.h> #include <zephyr/sys/check.h>
#ifdef CONFIG_POLL #ifdef CONFIG_POLL
static inline void handle_poll_events(struct k_msgq *msgq, uint32_t state) static inline void handle_poll_events(struct k_msgq *msgq, uint32_t state)

View file

@ -26,17 +26,17 @@
* unexpected priority levels (too high, or too low). * unexpected priority levels (too high, or too low).
*/ */
#include <kernel.h> #include <zephyr/kernel.h>
#include <kernel_structs.h> #include <zephyr/kernel_structs.h>
#include <toolchain.h> #include <zephyr/toolchain.h>
#include <ksched.h> #include <ksched.h>
#include <wait_q.h> #include <zephyr/wait_q.h>
#include <errno.h> #include <errno.h>
#include <init.h> #include <zephyr/init.h>
#include <syscall_handler.h> #include <zephyr/syscall_handler.h>
#include <tracing/tracing.h> #include <zephyr/tracing/tracing.h>
#include <sys/check.h> #include <zephyr/sys/check.h>
#include <logging/log.h> #include <zephyr/logging/log.h>
LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL); LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);
/* We use a global spinlock here because some of the synchronization /* We use a global spinlock here because some of the synchronization

View file

@ -4,11 +4,11 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#include <kernel.h> #include <zephyr/kernel.h>
#include <kernel_internal.h> #include <kernel_internal.h>
#include <syscall_handler.h> #include <zephyr/syscall_handler.h>
#include <toolchain.h> #include <zephyr/toolchain.h>
#include <sys/mem_manage.h> #include <zephyr/sys/mem_manage.h>
extern struct k_mem_paging_stats_t paging_stats; extern struct k_mem_paging_stats_t paging_stats;

View file

@ -10,16 +10,16 @@
* @brief Pipes * @brief Pipes
*/ */
#include <kernel.h> #include <zephyr/kernel.h>
#include <kernel_structs.h> #include <zephyr/kernel_structs.h>
#include <toolchain.h> #include <zephyr/toolchain.h>
#include <ksched.h> #include <ksched.h>
#include <wait_q.h> #include <zephyr/wait_q.h>
#include <init.h> #include <zephyr/init.h>
#include <syscall_handler.h> #include <zephyr/syscall_handler.h>
#include <kernel_internal.h> #include <kernel_internal.h>
#include <sys/check.h> #include <zephyr/sys/check.h>
struct k_pipe_desc { struct k_pipe_desc {
unsigned char *buffer; /* Position in src/dest buffer */ unsigned char *buffer; /* Position in src/dest buffer */

View file

@ -14,15 +14,15 @@
* constructs. * constructs.
*/ */
#include <kernel.h> #include <zephyr/kernel.h>
#include <kernel_structs.h> #include <zephyr/kernel_structs.h>
#include <kernel_internal.h> #include <kernel_internal.h>
#include <wait_q.h> #include <zephyr/wait_q.h>
#include <ksched.h> #include <ksched.h>
#include <syscall_handler.h> #include <zephyr/syscall_handler.h>
#include <sys/dlist.h> #include <zephyr/sys/dlist.h>
#include <sys/util.h> #include <zephyr/sys/util.h>
#include <sys/__assert.h> #include <zephyr/sys/__assert.h>
#include <stdbool.h> #include <stdbool.h>
/* Single subsystem lock. Locking per-event would be better on highly /* Single subsystem lock. Locking per-event would be better on highly

View file

@ -11,16 +11,16 @@
*/ */
#include <kernel.h> #include <zephyr/kernel.h>
#include <kernel_structs.h> #include <zephyr/kernel_structs.h>
#include <toolchain.h> #include <zephyr/toolchain.h>
#include <wait_q.h> #include <zephyr/wait_q.h>
#include <ksched.h> #include <ksched.h>
#include <init.h> #include <zephyr/init.h>
#include <syscall_handler.h> #include <zephyr/syscall_handler.h>
#include <kernel_internal.h> #include <kernel_internal.h>
#include <sys/check.h> #include <zephyr/sys/check.h>
struct alloc_node { struct alloc_node {
sys_sfnode_t node; sys_sfnode_t node;

View file

@ -3,21 +3,21 @@
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#include <kernel.h> #include <zephyr/kernel.h>
#include <ksched.h> #include <ksched.h>
#include <spinlock.h> #include <zephyr/spinlock.h>
#include <kernel/sched_priq.h> #include <zephyr/kernel/sched_priq.h>
#include <wait_q.h> #include <zephyr/wait_q.h>
#include <kswap.h> #include <kswap.h>
#include <kernel_arch_func.h> #include <kernel_arch_func.h>
#include <syscall_handler.h> #include <zephyr/syscall_handler.h>
#include <drivers/timer/system_timer.h> #include <zephyr/drivers/timer/system_timer.h>
#include <stdbool.h> #include <stdbool.h>
#include <kernel_internal.h> #include <kernel_internal.h>
#include <logging/log.h> #include <zephyr/logging/log.h>
#include <sys/atomic.h> #include <zephyr/sys/atomic.h>
#include <sys/math_extras.h> #include <zephyr/sys/math_extras.h>
#include <timing/timing.h> #include <zephyr/timing/timing.h>
LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL); LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);

View file

@ -17,17 +17,17 @@
* having to poll. * having to poll.
*/ */
#include <kernel.h> #include <zephyr/kernel.h>
#include <kernel_structs.h> #include <zephyr/kernel_structs.h>
#include <toolchain.h> #include <zephyr/toolchain.h>
#include <wait_q.h> #include <zephyr/wait_q.h>
#include <sys/dlist.h> #include <zephyr/sys/dlist.h>
#include <ksched.h> #include <ksched.h>
#include <init.h> #include <zephyr/init.h>
#include <syscall_handler.h> #include <zephyr/syscall_handler.h>
#include <tracing/tracing.h> #include <zephyr/tracing/tracing.h>
#include <sys/check.h> #include <zephyr/sys/check.h>
/* We use a system-wide lock to synchronize semaphores, which has /* We use a system-wide lock to synchronize semaphores, which has
* unfortunate performance impact vs. using a per-object lock * unfortunate performance impact vs. using a per-object lock

View file

@ -2,9 +2,9 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#include <kernel.h> #include <zephyr/kernel.h>
#include <kernel_structs.h> #include <zephyr/kernel_structs.h>
#include <spinlock.h> #include <zephyr/spinlock.h>
#include <kswap.h> #include <kswap.h>
#include <kernel_internal.h> #include <kernel_internal.h>

View file

@ -8,15 +8,15 @@
* @brief fixed-size stack object * @brief fixed-size stack object
*/ */
#include <kernel.h> #include <zephyr/kernel.h>
#include <kernel_structs.h> #include <zephyr/kernel_structs.h>
#include <toolchain.h> #include <zephyr/toolchain.h>
#include <ksched.h> #include <ksched.h>
#include <wait_q.h> #include <zephyr/wait_q.h>
#include <sys/check.h> #include <zephyr/sys/check.h>
#include <init.h> #include <zephyr/init.h>
#include <syscall_handler.h> #include <zephyr/syscall_handler.h>
#include <kernel_internal.h> #include <kernel_internal.h>
void k_stack_init(struct k_stack *stack, stack_data_t *buffer, void k_stack_init(struct k_stack *stack, stack_data_t *buffer,

View file

@ -11,8 +11,8 @@
* System workqueue. * System workqueue.
*/ */
#include <kernel.h> #include <zephyr/kernel.h>
#include <init.h> #include <zephyr/init.h>
static K_KERNEL_STACK_DEFINE(sys_work_q_stack, static K_KERNEL_STACK_DEFINE(sys_work_q_stack,
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE); CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE);

View file

@ -11,24 +11,24 @@
* This module provides general purpose thread support. * This module provides general purpose thread support.
*/ */
#include <kernel.h> #include <zephyr/kernel.h>
#include <spinlock.h> #include <zephyr/spinlock.h>
#include <sys/math_extras.h> #include <zephyr/sys/math_extras.h>
#include <sys_clock.h> #include <zephyr/sys_clock.h>
#include <ksched.h> #include <ksched.h>
#include <wait_q.h> #include <zephyr/wait_q.h>
#include <syscall_handler.h> #include <zephyr/syscall_handler.h>
#include <kernel_internal.h> #include <kernel_internal.h>
#include <kswap.h> #include <kswap.h>
#include <init.h> #include <zephyr/init.h>
#include <tracing/tracing.h> #include <zephyr/tracing/tracing.h>
#include <string.h> #include <string.h>
#include <stdbool.h> #include <stdbool.h>
#include <irq_offload.h> #include <zephyr/irq_offload.h>
#include <sys/check.h> #include <zephyr/sys/check.h>
#include <random/rand32.h> #include <zephyr/random/rand32.h>
#include <sys/atomic.h> #include <zephyr/sys/atomic.h>
#include <logging/log.h> #include <zephyr/logging/log.h>
LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL); LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);
#ifdef CONFIG_THREAD_MONITOR #ifdef CONFIG_THREAD_MONITOR

View file

@ -4,13 +4,13 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#include <kernel.h> #include <zephyr/kernel.h>
#include <spinlock.h> #include <zephyr/spinlock.h>
#include <ksched.h> #include <ksched.h>
#include <timeout_q.h> #include <zephyr/timeout_q.h>
#include <syscall_handler.h> #include <zephyr/syscall_handler.h>
#include <drivers/timer/system_timer.h> #include <zephyr/drivers/timer/system_timer.h>
#include <sys_clock.h> #include <zephyr/sys_clock.h>
static uint64_t curr_tick; static uint64_t curr_tick;

View file

@ -4,14 +4,14 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#include <kernel.h> #include <zephyr/kernel.h>
#include <init.h> #include <zephyr/init.h>
#include <ksched.h> #include <ksched.h>
#include <wait_q.h> #include <zephyr/wait_q.h>
#include <syscall_handler.h> #include <zephyr/syscall_handler.h>
#include <stdbool.h> #include <stdbool.h>
#include <spinlock.h> #include <zephyr/spinlock.h>
static struct k_spinlock lock; static struct k_spinlock lock;

View file

@ -4,12 +4,12 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#include <kernel.h> #include <zephyr/kernel.h>
#include <timing/timing.h> #include <zephyr/timing/timing.h>
#include <ksched.h> #include <ksched.h>
#include <spinlock.h> #include <zephyr/spinlock.h>
#include <sys/check.h> #include <zephyr/sys/check.h>
/* Need one of these for this to work */ /* Need one of these for this to work */
#if !defined(CONFIG_USE_SWITCH) && !defined(CONFIG_INSTRUMENT_THREAD_SWITCHING) #if !defined(CONFIG_USE_SWITCH) && !defined(CONFIG_INSTRUMENT_THREAD_SWITCHING)

View file

@ -5,23 +5,23 @@
*/ */
#include <kernel.h> #include <zephyr/kernel.h>
#include <string.h> #include <string.h>
#include <sys/math_extras.h> #include <zephyr/sys/math_extras.h>
#include <sys/rb.h> #include <zephyr/sys/rb.h>
#include <kernel_structs.h> #include <zephyr/kernel_structs.h>
#include <sys/sys_io.h> #include <zephyr/sys/sys_io.h>
#include <ksched.h> #include <ksched.h>
#include <syscall.h> #include <zephyr/syscall.h>
#include <syscall_handler.h> #include <zephyr/syscall_handler.h>
#include <device.h> #include <zephyr/device.h>
#include <init.h> #include <zephyr/init.h>
#include <stdbool.h> #include <stdbool.h>
#include <app_memory/app_memdomain.h> #include <zephyr/app_memory/app_memdomain.h>
#include <sys/libc-hooks.h> #include <zephyr/sys/libc-hooks.h>
#include <sys/mutex.h> #include <zephyr/sys/mutex.h>
#include <inttypes.h> #include <inttypes.h>
#include <linker/linker-defs.h> #include <zephyr/linker/linker-defs.h>
#ifdef Z_LIBC_PARTITION_EXISTS #ifdef Z_LIBC_PARTITION_EXISTS
K_APPMEM_PARTITION_DEFINE(z_libc_partition); K_APPMEM_PARTITION_DEFINE(z_libc_partition);
@ -35,7 +35,7 @@ K_APPMEM_PARTITION_DEFINE(z_libc_partition);
K_APPMEM_PARTITION_DEFINE(k_mbedtls_partition); K_APPMEM_PARTITION_DEFINE(k_mbedtls_partition);
#endif #endif
#include <logging/log.h> #include <zephyr/logging/log.h>
LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL); LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);
/* The originally synchronization strategy made heavy use of recursive /* The originally synchronization strategy made heavy use of recursive

View file

@ -4,9 +4,9 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#include <kernel.h> #include <zephyr/kernel.h>
#include <syscall_handler.h> #include <zephyr/syscall_handler.h>
#include <kernel_structs.h> #include <zephyr/kernel_structs.h>
static struct z_object *validate_any_object(const void *obj) static struct z_object *validate_any_object(const void *obj)
{ {

View file

@ -10,13 +10,13 @@
* Second generation work queue implementation * Second generation work queue implementation
*/ */
#include <kernel.h> #include <zephyr/kernel.h>
#include <kernel_structs.h> #include <zephyr/kernel_structs.h>
#include <wait_q.h> #include <zephyr/wait_q.h>
#include <spinlock.h> #include <zephyr/spinlock.h>
#include <errno.h> #include <errno.h>
#include <ksched.h> #include <ksched.h>
#include <sys/printk.h> #include <zephyr/sys/printk.h>
static inline void flag_clear(uint32_t *flagp, static inline void flag_clear(uint32_t *flagp,
uint32_t bit) uint32_t bit)

View file

@ -6,10 +6,10 @@
*/ */
#include <zephyr.h> #include <zephyr/zephyr.h>
#include <kernel.h> #include <zephyr/kernel.h>
#include <kernel_internal.h> #include <kernel_internal.h>
#include <linker/linker-defs.h> #include <zephyr/linker/linker-defs.h>
#ifdef CONFIG_STACK_CANARIES #ifdef CONFIG_STACK_CANARIES
extern volatile uintptr_t __stack_chk_guard; extern volatile uintptr_t __stack_chk_guard;