kernel: use LIST_DEFINE and list_drain

This commit is contained in:
wnstngs
2026-10-07 21:34:12 +03:00
parent 5180e693d9
commit 8b9fcf54bb
3 changed files with 3 additions and 5 deletions
+1 -2
View File
@@ -59,8 +59,7 @@ void vfs_root_event_signal(void) {
root_mounted = true;
MUTEX_RELEASE(&root_event_mutex);
list_node_t *node;
while ((node = list_pop_front(&root_event_list)) != NULL) {
list_drain_front (&root_event_list, node) {
root_event_waiter_t *rew = (root_event_waiter_t *)node;
rew->fn(rew->ctx);
free(rew);