Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
kobject.h File Reference
#include <stdint.h>
#include <stddef.h>
#include <syscalls/kobject.h>

Go to the source code of this file.

Macros

#define K_THREAD_ACCESS_GRANT(name_, ...)
 Grant a static thread access to a list of kernel objects. More...
 
#define K_OBJ_FLAG_INITIALIZED   BIT(0)
 
#define K_OBJ_FLAG_PUBLIC   BIT(1)
 
#define K_OBJ_FLAG_ALLOC   BIT(2)
 
#define K_OBJ_FLAG_DRIVER   BIT(3)
 

Enumerations

enum  k_objects { K_OBJ_ANY , K_OBJ_LAST }
 Kernel Object Types. More...
 

Functions

void k_object_access_grant (const void *object, struct k_thread *thread)
 
void k_object_access_revoke (const void *object, struct k_thread *thread)
 
void k_object_release (const void *object)
 Release an object. More...
 
void k_object_access_all_grant (const void *object)
 
voidk_object_alloc (enum k_objects otype)
 
static void k_object_free (void *obj)
 Free an object. More...
 

Enumeration Type Documentation

◆ k_objects

enum k_objects

Kernel Object Types.

This enumeration needs to be kept in sync with the lists of kernel objects and subsystems in scripts/gen_kobject_list.py, as well as the otype_to_str() function in kernel/userspace.c

Enumerator
K_OBJ_ANY 
K_OBJ_LAST