kernel: use circular lists in various places

This commit is contained in:
wnstngs
2026-10-07 10:32:08 +03:00
parent 513faa92c7
commit 9cffe521f3
6 changed files with 23 additions and 13 deletions
+2 -1
View File
@@ -59,7 +59,8 @@ void vfs_root_event_signal(void) {
root_mounted = true;
MUTEX_RELEASE(&root_event_mutex);
list_for_each_safe (&root_event_list, node) {
list_node_t *node;
while ((node = list_pop_front(&root_event_list)) != NULL) {
root_event_waiter_t *rew = (root_event_waiter_t *)node;
rew->fn(rew->ctx);
free(rew);