llext: rename _llext_list to llext_list

Beginning symbols or structure field names with an underscore isn't a
widely used style in Zephyr, remove the leading underscore from
_llext_list.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
Guennadi Liakhovetski 2025-06-10 10:52:26 +02:00 committed by Anas Nashif
commit d8195c05c7
2 changed files with 8 additions and 8 deletions

View file

@ -79,7 +79,7 @@ struct llext_loader;
*/
struct llext {
/** @cond ignore */
sys_snode_t _llext_list;
sys_snode_t llext_list;
#ifdef CONFIG_USERSPACE
struct k_mem_partition mem_parts[LLEXT_MEM_PARTITIONS];

View file

@ -19,7 +19,7 @@ LOG_MODULE_REGISTER(llext, CONFIG_LLEXT_LOG_LEVEL);
#include "llext_priv.h"
static sys_slist_t _llext_list = SYS_SLIST_STATIC_INIT(&_llext_list);
static sys_slist_t llext_list = SYS_SLIST_STATIC_INIT(&llext_list);
static struct k_mutex llext_lock = Z_MUTEX_INITIALIZER(llext_lock);
@ -90,10 +90,10 @@ struct llext *llext_by_name(const char *name)
{
k_mutex_lock(&llext_lock, K_FOREVER);
for (sys_snode_t *node = sys_slist_peek_head(&_llext_list);
for (sys_snode_t *node = sys_slist_peek_head(&llext_list);
node != NULL;
node = sys_slist_peek_next(node)) {
struct llext *ext = CONTAINER_OF(node, struct llext, _llext_list);
struct llext *ext = CONTAINER_OF(node, struct llext, llext_list);
if (strncmp(ext->name, name, LLEXT_MAX_NAME_LEN) == 0) {
k_mutex_unlock(&llext_lock);
@ -112,10 +112,10 @@ int llext_iterate(int (*fn)(struct llext *ext, void *arg), void *arg)
k_mutex_lock(&llext_lock, K_FOREVER);
for (node = sys_slist_peek_head(&_llext_list);
for (node = sys_slist_peek_head(&llext_list);
node;
node = sys_slist_peek_next(node)) {
struct llext *ext = CONTAINER_OF(node, struct llext, _llext_list);
struct llext *ext = CONTAINER_OF(node, struct llext, llext_list);
ret = fn(ext, arg);
if (ret) {
@ -198,7 +198,7 @@ int llext_load(struct llext_loader *ldr, const char *name, struct llext **ext,
(*ext)->name[LLEXT_MAX_NAME_LEN] = '\0';
(*ext)->use_count++;
sys_slist_append(&_llext_list, &(*ext)->_llext_list);
sys_slist_append(&llext_list, &(*ext)->llext_list);
LOG_INF("Loaded extension %s", (*ext)->name);
out:
@ -230,7 +230,7 @@ int llext_unload(struct llext **ext)
}
/* FIXME: protect the global list */
sys_slist_find_and_remove(&_llext_list, &tmp->_llext_list);
sys_slist_find_and_remove(&llext_list, &tmp->llext_list);
llext_dependency_remove_all(tmp);