kmem.h 925 B

1234567891011121314151617181920212223242526272829
  1. #include <mach/mach.h>
  2. void remote_read_overwrite(mach_port_t task_port,
  3. uint64_t remote_address,
  4. uint64_t local_address,
  5. uint64_t length);
  6. void remote_write(mach_port_t remote_task_port,
  7. uint64_t remote_address,
  8. uint64_t local_address,
  9. uint64_t length);
  10. uint64_t binary_load_address();
  11. uint64_t kalloc(vm_size_t size);
  12. void kfree(mach_vm_address_t address, vm_size_t size);
  13. size_t kread(uint64_t where, void *p, size_t size);
  14. uint16_t rk16(uint64_t kaddr);
  15. uint32_t rk32(uint64_t kaddr);
  16. uint64_t rk64(uint64_t kaddr);
  17. size_t kwrite(uint64_t where, const void *p, size_t size);
  18. void wk16(uint64_t kaddr, uint16_t val);
  19. void wk32(uint64_t kaddr, uint32_t val);
  20. void wk64(uint64_t kaddr, uint64_t val);
  21. uint64_t zm_fix_addr(uint64_t addr);
  22. int kstrcmp(uint64_t kstr, const char* str);