Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
syscall.h File Reference
#include <syscall_list.h>
#include <zephyr/arch/syscall.h>
#include <stdbool.h>
#include <zephyr/types.h>
#include <zephyr/linker/sections.h>

Go to the source code of this file.

Functions

static __pinned_func bool k_is_user_context (void)
 Indicate whether the CPU is currently in user mode.
 

Function Documentation

◆ k_is_user_context()

static __pinned_func bool k_is_user_context ( void  )
inlinestatic

Indicate whether the CPU is currently in user mode.

Returns
true if the CPU is currently running with user permissions