summaryrefslogtreecommitdiff
path: root/kernel/kmalloc.h
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-09-16 23:46:30 +0200
committerMiguel <m.i@gmx.at>2018-09-16 23:46:30 +0200
commit06e6e427c76bdb88a7f72dd04411d95a4bda3270 (patch)
tree5c2bae3ca5292bf3db58c33ef3d7f4f3947593c3 /kernel/kmalloc.h
parent740ae2e69995df37c44fe61f57642ee642982ca2 (diff)
starting to create sysfs
Diffstat (limited to 'kernel/kmalloc.h')
-rw-r--r--kernel/kmalloc.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/kernel/kmalloc.h b/kernel/kmalloc.h
index c7900c5..5ca4c8c 100644
--- a/kernel/kmalloc.h
+++ b/kernel/kmalloc.h
@@ -23,7 +23,10 @@
/** Allocate size*4096 bytes and returns a 32-bit address
* and 0 if fails.
* */
-uint32_t kballoc (uint32_t size);
+uint32_t kballoc (uint32_t size);
/** Free memory allocated before by supplying the address returned by kballoc */
-void kbfree (uint32_t addr);
+void kbfree (uint32_t addr);
+
+/** Get current status for sysfs */
+void kmalloc_sysfs(void (*f)(char *fmt, ...));