diff options
| author | Miguel <m.i@gmx.at> | 2018-09-16 23:46:30 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-09-16 23:46:30 +0200 |
| commit | 06e6e427c76bdb88a7f72dd04411d95a4bda3270 (patch) | |
| tree | 5c2bae3ca5292bf3db58c33ef3d7f4f3947593c3 /kernel/kmalloc.h | |
| parent | 740ae2e69995df37c44fe61f57642ee642982ca2 (diff) | |
starting to create sysfs
Diffstat (limited to 'kernel/kmalloc.h')
| -rw-r--r-- | kernel/kmalloc.h | 7 |
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, ...)); |
