summaryrefslogtreecommitdiff
path: root/lib/resource.h
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-03-09 09:10:44 +0100
committerMaria Matejka <mq@ucw.cz>2022-03-09 09:10:44 +0100
commitc78247f9b97802d6fe76d9b7cddf2c1940134d33 (patch)
tree42c178b7c4dbb19223e07540a4ba06ef60e7e42f /lib/resource.h
parent06ece3265e222f218224bb394c250cb414e44ab4 (diff)
Single-threaded version of sark-branch memory page management
Diffstat (limited to 'lib/resource.h')
-rw-r--r--lib/resource.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/resource.h b/lib/resource.h
index 0e4c44d8..992fa5b2 100644
--- a/lib/resource.h
+++ b/lib/resource.h
@@ -110,10 +110,11 @@ void sl_free(slab *, void *);
void buffer_realloc(void **buf, unsigned *size, unsigned need, unsigned item_size);
/* Allocator of whole pages; for use in slabs and other high-level allocators. */
-u64 get_page_size(void);
+extern long page_size;
void *alloc_page(void);
void free_page(void *);
-extern uint pages_kept;
+
+void resource_sys_init(void);
#ifdef HAVE_LIBDMALLOC
/*