kernel: userspace: rename z_thread_perms_clear -> k_thread_perms_clear

Rename z_thread_perms_clear -> k_thread_perms_clear.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2023-09-27 10:46:26 +00:00 committed by Carles Cufí
parent 70cf96b5e1
commit e2a9d013e5
3 changed files with 5 additions and 5 deletions

View File

@ -137,12 +137,12 @@ void z_thread_perms_set(struct k_object *ko, struct k_thread *thread);
* @param ko Kernel object metadata to update
* @param thread The thread to grant permission
*/
void z_thread_perms_clear(struct k_object *ko, struct k_thread *thread);
void k_thread_perms_clear(struct k_object *ko, struct k_thread *thread);
/*
* Revoke access to all objects for the provided thread
*
* NOTE: Unlike z_thread_perms_clear(), this function will not clear
* NOTE: Unlike k_thread_perms_clear(), this function will not clear
* permissions on public objects.
*
* @param thread Thread object to revoke access

View File

@ -611,7 +611,7 @@ void z_thread_perms_set(struct k_object *ko, struct k_thread *thread)
}
}
void z_thread_perms_clear(struct k_object *ko, struct k_thread *thread)
void k_thread_perms_clear(struct k_object *ko, struct k_thread *thread)
{
int index = thread_index_get(thread);
@ -703,7 +703,7 @@ void k_object_access_revoke(const void *object, struct k_thread *thread)
struct k_object *ko = z_object_find(object);
if (ko != NULL) {
z_thread_perms_clear(ko, thread);
k_thread_perms_clear(ko, thread);
}
}

View File

@ -73,7 +73,7 @@ static inline void z_vrfy_k_object_release(const void *object)
ko = validate_any_object((void *)object);
Z_OOPS(K_SYSCALL_VERIFY_MSG(ko != NULL, "object %p access denied",
(void *)object));
z_thread_perms_clear(ko, _current);
k_thread_perms_clear(ko, _current);
}
#include <syscalls/k_object_release_mrsh.c>