syscall: rename z_is_in_user_syscall
Rename z_is_in_user_syscall -> k_is_in_user_syscall Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
4e396174ce
commit
4d5d04169d
3 changed files with 4 additions and 4 deletions
|
|
@ -46,7 +46,7 @@ enum _obj_init_check {
|
|||
* @return whether the current context is handling a syscall for a user
|
||||
* mode thread
|
||||
*/
|
||||
static inline bool z_is_in_user_syscall(void)
|
||||
static inline bool k_is_in_user_syscall(void)
|
||||
{
|
||||
/* This gets set on entry to the syscall's generasted z_mrsh
|
||||
* function and then cleared on exit. This code path is only
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ static inline void *get_sock_vtable(int sock,
|
|||
lock);
|
||||
|
||||
#ifdef CONFIG_USERSPACE
|
||||
if (ctx != NULL && z_is_in_user_syscall()) {
|
||||
if (ctx != NULL && k_is_in_user_syscall()) {
|
||||
if (!k_object_is_valid(ctx, K_OBJ_NET_SOCKET)) {
|
||||
/* Invalidate the context, the caller doesn't have
|
||||
* sufficient permission or there was some other
|
||||
|
|
|
|||
|
|
@ -410,7 +410,7 @@ ZTEST(syscalls, test_syscall_torture)
|
|||
|
||||
bool z_impl_syscall_context(void)
|
||||
{
|
||||
return z_is_in_user_syscall();
|
||||
return k_is_in_user_syscall();
|
||||
}
|
||||
|
||||
static inline bool z_vrfy_syscall_context(void)
|
||||
|
|
@ -433,7 +433,7 @@ void test_syscall_context_user(void *p1, void *p2, void *p3)
|
|||
ZTEST(syscalls, test_syscall_context)
|
||||
{
|
||||
/* We're a regular supervisor thread. */
|
||||
zassert_false(z_is_in_user_syscall(),
|
||||
zassert_false(k_is_in_user_syscall(),
|
||||
"reported in user syscall when in supv. thread ctx");
|
||||
|
||||
/* Make a system call from supervisor mode. The check in the
|
||||
|
|
|
|||
Loading…
Reference in a new issue