mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-28 05:08:22 +00:00
kernel: spinlocks
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <spinlock.h>
|
||||
|
||||
typedef struct slab_t {
|
||||
struct slab_t *next;
|
||||
@@ -13,7 +14,7 @@ typedef struct slab_t {
|
||||
} slab_t;
|
||||
|
||||
typedef struct scache_t {
|
||||
// TODO lock
|
||||
spinlock_t lock;
|
||||
void (*ctor)(struct scache_t *cache, void *obj);
|
||||
void (*dtor)(struct scache_t *cache, void *obj);
|
||||
slab_t *full;
|
||||
|
||||
Reference in New Issue
Block a user