kernel: spinlocks

This commit is contained in:
Matheus
2023-04-23 17:12:05 -03:00
parent f16091656a
commit 0394165361
8 changed files with 59 additions and 30 deletions
+2 -1
View File
@@ -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;