Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
User Mode Internal APIs

Data Structures

union  k_object_data
 
struct  k_object
 Table generated by gperf, these objects are retrieved via k_object_find(). More...
 
struct  k_object_assignment
 

Functions

void k_object_init (const void *obj)
 Lookup a kernel object and init its metadata if it exists.
 
static struct k_objectk_object_create_dynamic_aligned (size_t align, size_t size)
 
static struct k_objectk_object_create_dynamic (size_t size)
 

Detailed Description

Function Documentation

◆ k_object_create_dynamic()

static struct k_object * k_object_create_dynamic ( size_t  size)
inlinestatic

◆ k_object_create_dynamic_aligned()

static struct k_object * k_object_create_dynamic_aligned ( size_t  align,
size_t  size 
)
inlinestatic

◆ k_object_init()

void k_object_init ( const void *  obj)

#include <zephyr/sys/internal/kobject_internal.h>

Lookup a kernel object and init its metadata if it exists.

Calling this on an object will make it usable from userspace. Intended to be called as the last statement in kernel object init functions.

Parameters
objAddress of the kernel object
Note
This is an internal API. Do not use unless you are extending functionality in the Zephyr tree.