Home
last modified time | relevance | path

Searched refs:k_is_user_context (Results 1 – 25 of 32) sorted by relevance

12

/Zephyr-latest/samples/userspace/hello_world_user/src/
Dmain.c21 k_is_user_context() ? "UserSpace!" : "privileged mode.", in user_function()
23 __ASSERT(k_is_user_context(), "User mode execution was expected"); in user_function()
/Zephyr-latest/tests/kernel/threads/thread_error_case/src/
Dmain.c68 if (k_is_user_context()) { in tThread_entry_negative()
79 if (k_is_user_context()) { in tThread_entry_negative()
90 if (k_is_user_context()) { in tThread_entry_negative()
113 if (k_is_user_context()) { in create_negative_test_thread()
/Zephyr-latest/tests/ztest/base/src/
Dmain_userspace.c12 zassert_true(k_is_user_context()); in ZTEST_USER()
/Zephyr-latest/modules/hal_nordic/nrf_802154/
Dnrf_802154_assert_handler.c18 if (k_is_user_context()) { in nrf_802154_assert_handler()
/Zephyr-latest/tests/misc/llext-edk/src/
Dmain.c39 k_is_user_context() ? "user" : "kernel"); in thread_entry()
41 if (k_is_user_context()) { in thread_entry()
/Zephyr-latest/include/zephyr/arch/riscv/
Derror.h28 if (k_is_user_context()) { \
/Zephyr-latest/lib/os/
Dassert.c38 if (k_is_user_context()) { in assert_post_action()
Dprintk.c108 if (k_is_user_context()) { in vprintk()
/Zephyr-latest/include/zephyr/
Dsyscall.h115 static inline bool k_is_user_context(void) in k_is_user_context() function
/Zephyr-latest/tests/drivers/virtualization/ivshmem/plain/src/
Divshmem.c57 zassert_true(k_is_user_context(), "thread left in kernel mode"); in test_is_usermode()
/Zephyr-latest/tests/kernel/spinlock/src/
Dspinlock_error_case.c79 if (k_is_user_context()) { in assert_post_action()
/Zephyr-latest/subsys/testsuite/ztest/src/
Dztest_error_hook.c142 if (k_is_user_context()) { in assert_post_action()
/Zephyr-latest/tests/arch/riscv/userspace/riscv_gp/src/
Dmain.c24 zassert_true(k_is_user_context()); in rogue_user_fn()
/Zephyr-latest/include/zephyr/arch/xtensa/
Darch.h98 if (k_is_user_context()) { \
/Zephyr-latest/tests/subsys/logging/log_benchmark/src/
Dmain.c156 k_is_user_context() ? "USERSPACE: " : "", in run_log_message_store_time_no_overwrite()
229 k_is_user_context() ? "USERSPACE: " : "", in ZTEST()
/Zephyr-latest/tests/kernel/mutex/mutex_error_case/src/
Dtest_mutex_error.c101 if (k_is_user_context()) { in create_negative_test_thread()
/Zephyr-latest/subsys/sensing/
Ddispatch.c88 if (IS_ENABLED(CONFIG_USERSPACE) && !k_is_user_context()) { in dispatch_task()
/Zephyr-latest/tests/kernel/common/src/
Derrno.c151 if (k_is_user_context()) { in ZTEST_USER()
/Zephyr-latest/subsys/shell/modules/
Ddevice_service.c91 if (!k_is_user_context()) { in cmd_device_list()
/Zephyr-latest/samples/subsys/llext/edk/app/src/
Dmain.c97 k_is_user_context() ? "userspace." : "privileged mode."); in user_function()
/Zephyr-latest/samples/subsys/logging/logger/src/
Dmain.c244 bool usermode = k_is_user_context(); in log_demo_thread()
/Zephyr-latest/tests/ztest/error_hook/src/
Dmain.c252 if (k_is_user_context()) { in run_trigger_thread()
/Zephyr-latest/tests/kernel/mem_protect/userspace/src/
Dmain.c110 zassert_true(k_is_user_context(), "thread left in kernel mode"); in ZTEST_USER()
645 zassert_true(k_is_user_context(), in umode_enter_func()
/Zephyr-latest/tests/subsys/edac/ibecc/src/
Dibecc.c275 zassert_true(k_is_user_context(), "thread left in kernel mode"); in check_values()
/Zephyr-latest/include/zephyr/logging/
Dlog_core.h185 (!IS_ENABLED(CONFIG_LOG_RUNTIME_FILTERING) || k_is_user_context() || \

12