kernel: objects: rename z_dynamic_object_aligned_create

Do not use z_ for internal APIs and rename function.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2023-09-26 21:31:33 +00:00 committed by Carles Cufí
parent d2c025dd78
commit c54fb959e3
3 changed files with 5 additions and 5 deletions

View file

@ -106,7 +106,7 @@ static inline void z_object_init(const void *obj)
* @return A pointer to the associated z_object that is installed in the * @return A pointer to the associated z_object that is installed in the
* kernel object tables * kernel object tables
*/ */
struct z_object *z_dynamic_object_aligned_create(size_t align, size_t size); struct z_object *k_object_create_dynamic_aligned(size_t align, size_t size);
/** /**
* Allocate memory and install as a generic kernel object * Allocate memory and install as a generic kernel object
@ -129,13 +129,13 @@ struct z_object *z_dynamic_object_aligned_create(size_t align, size_t size);
*/ */
static inline struct z_object *k_object_create_dynamic(size_t size) static inline struct z_object *k_object_create_dynamic(size_t size)
{ {
return z_dynamic_object_aligned_create(0, size); return k_object_create_dynamic_aligned(0, size);
} }
#else #else
/* LCOV_EXCL_START */ /* LCOV_EXCL_START */
static inline struct z_object *z_dynamic_object_aligned_create(size_t align, static inline struct z_object *k_object_create_dynamic_aligned(size_t align,
size_t size) size_t size)
{ {
ARG_UNUSED(align); ARG_UNUSED(align);

View file

@ -373,7 +373,7 @@ static struct z_object *dynamic_object_create(enum k_objects otype, size_t align
return &dyn->kobj; return &dyn->kobj;
} }
struct z_object *z_dynamic_object_aligned_create(size_t align, size_t size) struct z_object *k_object_create_dynamic_aligned(size_t align, size_t size)
{ {
struct z_object *obj = dynamic_object_create(K_OBJ_ANY, align, size); struct z_object *obj = dynamic_object_create(K_OBJ_ANY, align, size);

View file

@ -159,7 +159,7 @@ ZTEST(thread_dynamic, test_thread_index_management)
#include <otype-to-size.h> #include <otype-to-size.h>
/** @endcond */ /** @endcond */
} }
blob = z_dynamic_object_aligned_create(16, ret); blob = k_object_create_dynamic_aligned(16, ret);
zassert_true(blob != NULL, "out of heap memory"); zassert_true(blob != NULL, "out of heap memory");
/* Free one of the threads... */ /* Free one of the threads... */