kernel: move syscall_handler.h to internal include directory
Move the syscall_handler.h header, used internally only to a dedicated internal folder that should not be used outside of Zephyr. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
a6b490073e
commit
4e396174ce
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include <zephyr/kernel.h>
|
||||
#include <zephyr/sys/speculation.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <kernel_arch_func.h>
|
||||
#include <ksched.h>
|
||||
#include <x86_mmu.h>
|
||||
|
|
|
@ -235,7 +235,7 @@ implementation of both the subsystem API and the specific APIs:
|
|||
|
||||
#ifdef CONFIG_USERSPACE
|
||||
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
|
||||
int z_vrfy_specific_from_user(const struct device *dev, int bar)
|
||||
{
|
||||
|
|
|
@ -271,7 +271,7 @@ passed in. This includes:
|
|||
* Any other arguments that have a limited range of valid values.
|
||||
|
||||
Verification functions involve a great deal of boilerplate code which has been
|
||||
made simpler by some macros in :zephyr_file:`include/zephyr/syscall_handler.h`.
|
||||
made simpler by some macros in :zephyr_file:`include/zephyr/internal/syscall_handler.h`.
|
||||
Verification functions should be declared using these macros.
|
||||
|
||||
Argument Validation
|
||||
|
@ -630,7 +630,7 @@ APIs
|
|||
****
|
||||
|
||||
Helper macros for creating system call verification functions are provided in
|
||||
:zephyr_file:`include/zephyr/syscall_handler.h`:
|
||||
:zephyr_file:`include/zephyr/internal/syscall_handler.h`:
|
||||
|
||||
* :c:macro:`Z_SYSCALL_OBJ()`
|
||||
* :c:macro:`Z_SYSCALL_OBJ_INIT()`
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <zephyr/drivers/adc.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/kernel.h>
|
||||
|
||||
static inline int z_vrfy_adc_channel_setup(const struct device *dev,
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <zephyr/drivers/auxdisplay.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
|
||||
static inline int z_vrfy_auxdisplay_display_on(const struct device *dev)
|
||||
{
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <zephyr/drivers/bbram.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
|
||||
static inline int z_vrfy_bbram_check_invalid(const struct device *dev)
|
||||
{
|
||||
|
|
2
drivers/cache/cache_handlers.c
vendored
2
drivers/cache/cache_handlers.c
vendored
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <zephyr/cache.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
|
||||
static inline int z_vrfy_sys_cache_data_flush_range(void *addr, size_t size)
|
||||
{
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/drivers/can.h>
|
||||
|
||||
static int z_vrfy_can_calc_timing(const struct device *dev, struct can_timing *res,
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/drivers/charger.h>
|
||||
|
||||
static inline int z_vrfy_charger_get_prop(const struct device *dev, const charger_prop_t prop,
|
||||
|
|
|
@ -10,7 +10,7 @@ LOG_MODULE_REGISTER(uart_mux, CONFIG_UART_MUX_LOG_LEVEL);
|
|||
#include <zephyr/sys/__assert.h>
|
||||
#include <zephyr/kernel.h>
|
||||
#include <zephyr/init.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/device.h>
|
||||
#include <zephyr/drivers/uart.h>
|
||||
#include <zephyr/drivers/console/uart_mux.h>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/drivers/counter.h>
|
||||
|
||||
/* For those APIs that just take one argument which is a counter driver
|
||||
|
|
|
@ -1300,7 +1300,7 @@ DEVICE_DT_INST_DEFINE(0, ds3231_init, NULL, &ds3231_0_data,
|
|||
|
||||
#ifdef CONFIG_USERSPACE
|
||||
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
|
||||
int z_vrfy_maxim_ds3231_get_syncpoint(const struct device *dev,
|
||||
struct maxim_ds3231_syncpoint *syncpoint)
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <zephyr/drivers/dac.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/kernel.h>
|
||||
|
||||
static inline int z_vrfy_dac_channel_setup(const struct device *dev,
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <zephyr/drivers/dma.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
|
||||
/* Both of these APIs are assuming that the drive implementations are checking
|
||||
* the validity of the channel ID and returning -errno if it's bogus
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/drivers/eeprom.h>
|
||||
|
||||
static inline int z_vrfy_eeprom_read(const struct device *dev, off_t offset,
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <zephyr/drivers/entropy.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
|
||||
static inline int z_vrfy_entropy_get_entropy(const struct device *dev,
|
||||
uint8_t *buffer,
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <zephyr/drivers/espi.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
|
||||
|
||||
static inline int z_vrfy_espi_config(const struct device *dev,
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/drivers/flash.h>
|
||||
|
||||
static inline int z_vrfy_flash_read(const struct device *dev, off_t offset,
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#include <soc.h>
|
||||
#ifdef CONFIG_USERSPACE
|
||||
#include <zephyr/syscall.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#endif
|
||||
|
||||
#include "flash_npcx_fiu_qspi.h"
|
||||
|
|
|
@ -481,7 +481,7 @@ void *z_impl_flash_simulator_get_memory(const struct device *dev,
|
|||
|
||||
#ifdef CONFIG_USERSPACE
|
||||
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
|
||||
void *z_vrfy_flash_simulator_get_memory(const struct device *dev,
|
||||
size_t *mock_size)
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
#ifdef CONFIG_USERSPACE
|
||||
#include <zephyr/syscall.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#endif
|
||||
|
||||
#include <soc.h>
|
||||
|
|
|
@ -1464,7 +1464,7 @@ void z_impl_nrf_qspi_nor_xip_enable(const struct device *dev, bool enable)
|
|||
}
|
||||
|
||||
#ifdef CONFIG_USERSPACE
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
|
||||
void z_vrfy_nrf_qspi_nor_xip_enable(const struct device *dev, bool enable)
|
||||
{
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/drivers/emul_fuel_gauge.h>
|
||||
|
||||
/* Emulator syscalls just need to exist as stubs as these are only called by tests. */
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/drivers/fuel_gauge.h>
|
||||
|
||||
static inline int z_vrfy_fuel_gauge_get_prop(const struct device *dev, fuel_gauge_prop_t prop,
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <zephyr/drivers/gpio.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
|
||||
static inline int z_vrfy_gpio_pin_configure(const struct device *port,
|
||||
gpio_pin_t pin,
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/drivers/hwinfo.h>
|
||||
|
||||
ssize_t z_vrfy_hwinfo_get_device_id(uint8_t *buffer, size_t length)
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <zephyr/drivers/hwspinlock.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
|
||||
static inline int z_vrfy_hwspinlock_trylock(const struct device *dev, uint32_t id)
|
||||
{
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include <zephyr/drivers/i2c.h>
|
||||
#include <string.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
|
||||
static inline int z_vrfy_i2c_configure(const struct device *dev,
|
||||
uint32_t dev_config)
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <zephyr/kernel.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/drivers/i2s.h>
|
||||
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include <zephyr/drivers/i3c.h>
|
||||
#include <string.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
|
||||
static inline int z_vrfy_i3c_do_ccc(const struct device *dev,
|
||||
struct i3c_ccc_payload *payload)
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/drivers/ipm.h>
|
||||
|
||||
static inline int z_vrfy_ipm_send(const struct device *dev, int wait,
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <zephyr/drivers/kscan.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
|
||||
static inline int z_vrfy_kscan_config(const struct device *dev,
|
||||
kscan_callback_t callback_isr)
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/drivers/led.h>
|
||||
|
||||
static inline int z_vrfy_led_blink(const struct device *dev, uint32_t led,
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/drivers/mbox.h>
|
||||
|
||||
static inline int z_vrfy_mbox_send(const struct mbox_channel *channel,
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <zephyr/drivers/peci.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
|
||||
|
||||
static inline int z_vrfy_peci_config(const struct device *dev,
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <zephyr/drivers/ps2.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
|
||||
static inline int z_vrfy_ps2_config(const struct device *dev,
|
||||
ps2_callback_t callback_isr)
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/drivers/ptp_clock.h>
|
||||
|
||||
#ifdef CONFIG_USERSPACE
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/drivers/pwm.h>
|
||||
|
||||
static inline int z_vrfy_pwm_set_cycles(const struct device *dev,
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <zephyr/drivers/retained_mem.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
|
||||
static inline ssize_t z_vrfy_retained_mem_size(const struct device *dev)
|
||||
{
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <zephyr/drivers/rtc.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
|
||||
static inline int z_vrfy_rtc_set_time(const struct device *dev, const struct rtc_time *timeptr)
|
||||
{
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <zephyr/drivers/sensor.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
|
||||
static inline int z_vrfy_sensor_attr_set(const struct device *dev,
|
||||
enum sensor_channel chan,
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <zephyr/drivers/uart.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
|
||||
#define UART_SIMPLE(op_) \
|
||||
static inline int z_vrfy_uart_##op_(const struct device *dev) \
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#include <zephyr/drivers/sip_svc/sip_svc_agilex_mailbox.h>
|
||||
#include <zephyr/drivers/sip_svc/sip_svc_agilex_smc.h>
|
||||
#include <zephyr/drivers/sip_svc/sip_svc_driver.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
|
||||
#include <zephyr/logging/log.h>
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <zephyr/sys/slist.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/drivers/smbus.h>
|
||||
|
||||
static inline int z_vrfy_smbus_configure(const struct device *dev,
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <zephyr/drivers/spi.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <string.h>
|
||||
|
||||
/* This assumes that bufs and buf_copy are copies from the values passed
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <zephyr/drivers/usb/usb_bc12.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
|
||||
static inline int z_vrfy_bc12_set_role(const struct device *dev, enum bc12_role role)
|
||||
{
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <zephyr/drivers/virtualization/ivshmem.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <string.h>
|
||||
|
||||
static inline size_t z_vrfy_ivshmem_get_mem(const struct device *dev,
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/drivers/w1.h>
|
||||
|
||||
static inline int z_vrfy_w1_reset_bus(const struct device *dev)
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <zephyr/drivers/watchdog.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
|
||||
static inline int z_vrfy_wdt_setup(const struct device *dev, uint8_t options)
|
||||
{
|
||||
|
|
|
@ -37,7 +37,7 @@ static struct k_spinlock lock;
|
|||
* forbidden.
|
||||
*/
|
||||
#ifdef CONFIG_USERSPACE
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
|
||||
#define ATOMIC_SYSCALL_HANDLER_TARGET(name) \
|
||||
static inline atomic_val_t z_vrfy_##name(atomic_t *target) \
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include <zephyr/toolchain.h>
|
||||
#include <ksched.h>
|
||||
#include <wait_q.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/init.h>
|
||||
|
||||
#ifdef CONFIG_OBJ_CORE_CONDVAR
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include <zephyr/sys/atomic.h>
|
||||
#include <zephyr/sys/iterable_sections.h>
|
||||
#include <zephyr/sys/kobject.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/toolchain.h>
|
||||
|
||||
/**
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#include <zephyr/logging/log.h>
|
||||
#include <zephyr/sys/bitarray.h>
|
||||
#include <zephyr/sys/kobject.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
|
||||
LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*/
|
||||
|
||||
#include <zephyr/kernel.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
|
||||
/*
|
||||
* Define _k_neg_eagain for use in assembly files as errno.h is
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
#include <zephyr/toolchain.h>
|
||||
#include <zephyr/sys/dlist.h>
|
||||
#include <zephyr/init.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/tracing/tracing.h>
|
||||
#include <zephyr/sys/check.h>
|
||||
/* private kernel APIs */
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#include <zephyr/kernel_structs.h>
|
||||
#include <zephyr/spinlock.h>
|
||||
#include <kswap.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/init.h>
|
||||
#include <ksched.h>
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include <mmu.h>
|
||||
#include <zephyr/init.h>
|
||||
#include <kernel_internal.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/toolchain.h>
|
||||
#include <zephyr/linker/linker-defs.h>
|
||||
#include <zephyr/sys/bitarray.h>
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
#include <zephyr/sys/dlist.h>
|
||||
#include <zephyr/sys/math_extras.h>
|
||||
#include <zephyr/init.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <kernel_internal.h>
|
||||
#include <zephyr/sys/check.h>
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
#include <wait_q.h>
|
||||
#include <errno.h>
|
||||
#include <zephyr/init.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/tracing/tracing.h>
|
||||
#include <zephyr/sys/check.h>
|
||||
#include <zephyr/logging/log.h>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include <zephyr/kernel.h>
|
||||
#include <kernel_internal.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/toolchain.h>
|
||||
#include <zephyr/sys/mem_manage.h>
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#include <ksched.h>
|
||||
#include <wait_q.h>
|
||||
#include <zephyr/init.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <kernel_internal.h>
|
||||
#include <zephyr/sys/check.h>
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include <kernel_internal.h>
|
||||
#include <wait_q.h>
|
||||
#include <ksched.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/sys/dlist.h>
|
||||
#include <zephyr/sys/util.h>
|
||||
#include <zephyr/sys/__assert.h>
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#include <wait_q.h>
|
||||
#include <ksched.h>
|
||||
#include <zephyr/init.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <kernel_internal.h>
|
||||
#include <zephyr/sys/check.h>
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#include <wait_q.h>
|
||||
#include <kswap.h>
|
||||
#include <kernel_arch_func.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/drivers/timer/system_timer.h>
|
||||
#include <stdbool.h>
|
||||
#include <kernel_internal.h>
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#include <zephyr/sys/dlist.h>
|
||||
#include <ksched.h>
|
||||
#include <zephyr/init.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/tracing/tracing.h>
|
||||
#include <zephyr/sys/check.h>
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
#include <wait_q.h>
|
||||
#include <zephyr/sys/check.h>
|
||||
#include <zephyr/init.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <kernel_internal.h>
|
||||
|
||||
#ifdef CONFIG_OBJ_CORE_STACK
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#include <zephyr/sys_clock.h>
|
||||
#include <ksched.h>
|
||||
#include <wait_q.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <kernel_internal.h>
|
||||
#include <kswap.h>
|
||||
#include <zephyr/init.h>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#include <zephyr/spinlock.h>
|
||||
#include <ksched.h>
|
||||
#include <timeout_q.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/drivers/timer/system_timer.h>
|
||||
#include <zephyr/sys_clock.h>
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#include <zephyr/kernel.h>
|
||||
|
||||
#include <zephyr/init.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <stdbool.h>
|
||||
#include <zephyr/spinlock.h>
|
||||
#include <ksched.h>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#include <zephyr/sys/sys_io.h>
|
||||
#include <ksched.h>
|
||||
#include <zephyr/syscall.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/device.h>
|
||||
#include <zephyr/init.h>
|
||||
#include <stdbool.h>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <zephyr/kernel.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/kernel_structs.h>
|
||||
#include <zephyr/toolchain.h>
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include <zephyr/sys/libc-hooks.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <string.h>
|
||||
#include <zephyr/sys/errno_private.h>
|
||||
#include <unistd.h>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include <zephyr/sys/libc-hooks.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <string.h>
|
||||
|
||||
static int _stdout_hook_default(int c)
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include <zephyr/sys/errno_private.h>
|
||||
#include <zephyr/sys/heap_listener.h>
|
||||
#include <zephyr/sys/libc-hooks.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/app_memory/app_memdomain.h>
|
||||
#include <zephyr/init.h>
|
||||
#include <zephyr/sys/sem.h>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#include <zephyr/sys/util.h>
|
||||
#include <zephyr/sys/errno_private.h>
|
||||
#include <zephyr/sys/libc-hooks.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/app_memory/app_memdomain.h>
|
||||
#include <zephyr/init.h>
|
||||
#include <zephyr/sys/sem.h>
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include <zephyr/kernel.h>
|
||||
#include <zephyr/sys/fdtable.h>
|
||||
#include <zephyr/sys/speculation.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/sys/atomic.h>
|
||||
|
||||
struct fd_entry {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include <zephyr/kernel.h>
|
||||
#include <zephyr/sys/mutex.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/kernel_structs.h>
|
||||
|
||||
static struct k_mutex *get_k_mutex(struct sys_mutex *mutex)
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#include <stdarg.h>
|
||||
#include <zephyr/toolchain.h>
|
||||
#include <zephyr/linker/sections.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/logging/log.h>
|
||||
#include <zephyr/sys/cbprintf.h>
|
||||
#include <zephyr/llext/symbol.h>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <zephyr/sys/sem.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
|
||||
#ifdef CONFIG_USERSPACE
|
||||
#define SYS_SEM_MINIMUM 0
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#include <errno.h>
|
||||
#include <zephyr/posix/time.h>
|
||||
#include <zephyr/posix/sys/time.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/spinlock.h>
|
||||
|
||||
/*
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/logging/log.h>
|
||||
|
||||
LOG_MODULE_REGISTER(app_syscall);
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <zephyr/kernel.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include "sample_driver.h"
|
||||
|
||||
int z_vrfy_sample_driver_state_set(const struct device *dev, bool active)
|
||||
|
|
|
@ -724,7 +724,7 @@ header = """%compare-lengths
|
|||
%{
|
||||
#include <zephyr/kernel.h>
|
||||
#include <zephyr/toolchain.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <string.h>
|
||||
%}
|
||||
struct k_object;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#include <zephyr/sys/iterable_sections.h>
|
||||
#include <ctype.h>
|
||||
#include <zephyr/logging/log_frontend.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/logging/log_output_dict.h>
|
||||
#include <zephyr/logging/log_output_custom.h>
|
||||
#include <zephyr/linker/utils.h>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
#include <zephyr/logging/log_internal.h>
|
||||
#include <zephyr/logging/log_ctrl.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/init.h>
|
||||
#include <zephyr/logging/log.h>
|
||||
#include <zephyr/logging/log_link.h>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
#include <zephyr/kernel.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/logging/log_internal.h>
|
||||
#include <zephyr/logging/log_ctrl.h>
|
||||
#include <zephyr/logging/log_frontend.h>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/mgmt/updatehub.h>
|
||||
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ LOG_MODULE_REGISTER(net_if, CONFIG_NET_IF_LOG_LEVEL);
|
|||
#include <zephyr/kernel.h>
|
||||
#include <zephyr/linker/sections.h>
|
||||
#include <zephyr/random/random.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <zephyr/net/igmp.h>
|
||||
|
|
|
@ -14,7 +14,7 @@ LOG_MODULE_REGISTER(net_utils, CONFIG_NET_UTILS_LOG_LEVEL);
|
|||
|
||||
#include <zephyr/kernel.h>
|
||||
#include <stdlib.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/types.h>
|
||||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
|
|
|
@ -20,7 +20,7 @@ LOG_MODULE_REGISTER(net_ethernet, CONFIG_NET_L2_ETHERNET_LOG_LEVEL);
|
|||
#include <zephyr/net/lldp.h>
|
||||
#endif
|
||||
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
|
||||
#include "arp.h"
|
||||
#include "eth_stats.h"
|
||||
|
|
|
@ -18,7 +18,7 @@ LOG_MODULE_REGISTER(net_sock_addr, CONFIG_NET_SOCKETS_LOG_LEVEL);
|
|||
#include <zephyr/net/net_ip.h>
|
||||
#include <zephyr/net/socket.h>
|
||||
#include <zephyr/net/socket_offload.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
|
||||
#if defined(CONFIG_DNS_RESOLVER) || defined(CONFIG_NET_IP)
|
||||
#define ANY_RESOLVER
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#include <zephyr/kernel.h>
|
||||
#include <zephyr/net/socket.h>
|
||||
#include <zephyr/posix/fcntl.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/sys/__assert.h>
|
||||
#include <zephyr/sys/fdtable.h>
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ LOG_MODULE_REGISTER(net_sock, CONFIG_NET_SOCKETS_LOG_LEVEL);
|
|||
#else
|
||||
#include <zephyr/posix/fcntl.h>
|
||||
#endif
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/sys/fdtable.h>
|
||||
#include <zephyr/sys/math_extras.h>
|
||||
#include <zephyr/sys/iterable_sections.h>
|
||||
|
|
|
@ -21,7 +21,7 @@ LOG_MODULE_REGISTER(net_sock_can, CONFIG_NET_SOCKETS_LOG_LEVEL);
|
|||
#include <zephyr/net/net_context.h>
|
||||
#include <zephyr/net/net_pkt.h>
|
||||
#include <zephyr/net/socket.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/sys/fdtable.h>
|
||||
#include <zephyr/net/canbus.h>
|
||||
#include <zephyr/net/socketcan.h>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include <errno.h>
|
||||
#include <zephyr/net/socket.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
|
||||
int z_impl_zsock_gethostname(char *buf, size_t len)
|
||||
{
|
||||
|
|
|
@ -17,7 +17,7 @@ LOG_MODULE_REGISTER(net_sock_mgmt, CONFIG_NET_SOCKETS_LOG_LEVEL);
|
|||
#include <zephyr/kernel.h>
|
||||
#include <zephyr/sys/util.h>
|
||||
#include <zephyr/net/socket.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/sys/fdtable.h>
|
||||
#include <zephyr/net/socket_net_mgmt.h>
|
||||
#include <zephyr/net/ethernet_mgmt.h>
|
||||
|
|
|
@ -22,7 +22,7 @@ LOG_MODULE_REGISTER(net_sock_packet, CONFIG_NET_SOCKETS_LOG_LEVEL);
|
|||
#include <zephyr/net/net_pkt.h>
|
||||
#include <zephyr/net/socket.h>
|
||||
#include <zephyr/net/ethernet.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/sys/fdtable.h>
|
||||
|
||||
#include "../../ip/net_stats.h"
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <zephyr/kernel.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/sys/math_extras.h>
|
||||
#include <zephyr/net/socket.h>
|
||||
#include "sockets_internal.h"
|
||||
|
|
|
@ -19,7 +19,7 @@ LOG_MODULE_REGISTER(net_sock_tls, CONFIG_NET_SOCKETS_LOG_LEVEL);
|
|||
#include <zephyr/sys/util.h>
|
||||
#include <zephyr/net/socket.h>
|
||||
#include <zephyr/random/random.h>
|
||||
#include <zephyr/syscall_handler.h>
|
||||
#include <zephyr/internal/syscall_handler.h>
|
||||
#include <zephyr/sys/fdtable.h>
|
||||
|
||||
/* TODO: Remove all direct access to private fields.
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue