WIP: add in missing APIs needed by the kmem