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:
parent
70cf96b5e1
commit
e2a9d013e5
@ -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
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user