kernel/image: Switch to using DoublyLinkedList<> for struct image.

No functional change intended.
This commit is contained in:
Augustin Cavalier
2025-01-14 17:30:36 -05:00
parent 9792c51694
commit 7d232f0cf8
5 changed files with 27 additions and 38 deletions
+3 -3
View File
@@ -5,6 +5,7 @@
#ifndef _KERNEL_IMAGE_H
#define _KERNEL_IMAGE_H
#include <image.h>
#include <image_defs.h>
@@ -21,11 +22,10 @@ using BKernel::Team;
#ifdef __cplusplus
#include <util/DoublyLinkedList.h>
#include <util/OpenHashTable.h>
struct image {
struct image* next;
struct image* prev;
struct image : public DoublyLinkedListLinkImpl<struct image> {
struct image* hash_link;
extended_image_info info;
team_id team;
+1 -1
View File
@@ -260,7 +260,7 @@ struct Team : TeamThreadIteratorEntry<team_id>, KernelReferenceable,
Thread *thread_list; // protected by fLock, signal_lock and
// gThreadCreationLock
struct team_loading_info *loading_info; // protected by fLock
struct list image_list; // protected by sImageMutex
DoublyLinkedList<image> image_list; // protected by sImageMutex
struct list watcher_list;
struct list sem_list; // protected by sSemsSpinlock
struct list port_list; // protected by sPortsLock