kmem.h 453 B

1234567891011121314151617
  1. #include <mach/mach.h>
  2. uint64_t kalloc(vm_size_t size);
  3. void kfree(mach_vm_address_t address, vm_size_t size);
  4. size_t kread(uint64_t where, void *p, size_t size);
  5. uint32_t rk32(uint64_t kaddr);
  6. uint64_t rk64(uint64_t kaddr);
  7. size_t kwrite(uint64_t where, const void *p, size_t size);
  8. void wk32(uint64_t kaddr, uint32_t val);
  9. void wk64(uint64_t kaddr, uint64_t val);
  10. uint64_t zm_fix_addr(uint64_t addr);
  11. int kstrcmp(uint64_t kstr, const char* str);