Browse Source

syscall: rename z_thread_perms_inherit -> k_thread_perms_inherit

Rename internal API to not use z_/Z_.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
pull/64779/head
Anas Nashif 2 years ago committed by Carles Cufí
parent
commit
a5b49458eb
  1. 3
      include/zephyr/internal/syscall_handler.h
  2. 2
      kernel/thread.c
  3. 2
      kernel/userspace.c

3
include/zephyr/internal/syscall_handler.h

@ -120,8 +120,7 @@ void z_object_wordlist_foreach(_wordlist_cb_func_t func, void *context); @@ -120,8 +120,7 @@ void z_object_wordlist_foreach(_wordlist_cb_func_t func, void *context);
* @param parent Parent thread, to get permissions from
* @param child Child thread, to copy permissions to
*/
void z_thread_perms_inherit(struct k_thread *parent,
struct k_thread *child);
void k_thread_perms_inherit(struct k_thread *parent, struct k_thread *child);
/**
* Grant a thread permission to a kernel object

2
kernel/thread.c

@ -673,7 +673,7 @@ char *z_setup_new_thread(struct k_thread *new_thread, @@ -673,7 +673,7 @@ char *z_setup_new_thread(struct k_thread *new_thread,
z_mem_domain_init_thread(new_thread);
if ((options & K_INHERIT_PERMS) != 0U) {
z_thread_perms_inherit(_current, new_thread);
k_thread_perms_inherit(_current, new_thread);
}
#endif
#ifdef CONFIG_SCHED_DEADLINE

2
kernel/userspace.c

@ -589,7 +589,7 @@ static void wordlist_cb(struct k_object *ko, void *ctx_ptr) @@ -589,7 +589,7 @@ static void wordlist_cb(struct k_object *ko, void *ctx_ptr)
}
}
void z_thread_perms_inherit(struct k_thread *parent, struct k_thread *child)
void k_thread_perms_inherit(struct k_thread *parent, struct k_thread *child)
{
struct perm_ctx ctx = {
thread_index_get(parent),

Loading…
Cancel
Save