offsetof.c 1.9 KB

1234567891011121314151617181920212223242526272829303132
  1. unsigned offsetof_p_pid = 0x10; // proc_t::p_pid
  2. unsigned offsetof_task = 0x18; // proc_t::task
  3. unsigned offsetof_p_ucred = 0x100; // proc_t::p_ucred
  4. unsigned offsetof_p_csflags = 0x2a8; // proc_t::p_csflags
  5. unsigned offsetof_itk_self = 0xD8; // task_t::itk_self (convert_task_to_port)
  6. unsigned offsetof_itk_sself = 0xE8; // task_t::itk_sself (task_get_special_port)
  7. unsigned offsetof_itk_bootstrap = 0x2b8; // task_t::itk_bootstrap (task_get_special_port)
  8. unsigned offsetof_ip_mscount = 0x9C; // ipc_port_t::ip_mscount (ipc_port_make_send)
  9. unsigned offsetof_ip_srights = 0xA0; // ipc_port_t::ip_srights (ipc_port_make_send)
  10. unsigned offsetof_p_textvp = 0x248; // proc_t::p_textvp
  11. unsigned offsetof_p_textoff = 0x250; // proc_t::p_textoff
  12. unsigned offsetof_p_cputype = 0x2c0; // proc_t::p_cputype
  13. unsigned offsetof_p_cpu_subtype = 0x2c4; // proc_t::p_cpu_subtype
  14. unsigned offsetof_special = 2 * sizeof(long); // host::special
  15. unsigned offsetof_v_type = 0x70; // vnode::v_type
  16. unsigned offsetof_v_id = 0x74; // vnode::v_id
  17. unsigned offsetof_v_ubcinfo = 0x78; // vnode::v_ubcinfo
  18. unsigned offsetof_v_mount = 0xd8; // vnode::v_mount
  19. unsigned offsetof_mnt_flag = 0x70; // mount::mnt_flag
  20. unsigned offsetof_ubcinfo_csblobs = 0x50; // ubc_info::csblobs
  21. unsigned offsetof_csb_cputype = 0x8; // cs_blob::csb_cputype
  22. unsigned offsetof_csb_flags = 0x12; // cs_blob::csb_flags
  23. unsigned offsetof_csb_base_offset = 0x16; // cs_blob::csb_base_offset
  24. unsigned offsetof_csb_entitlements_offset = 0x98; // cs_blob::csb_entitlements
  25. unsigned offsetof_csb_signer_type = 0xA0; // cs_blob::csb_signer_type
  26. unsigned offsetof_csb_platform_binary = 0xA4; // cs_blob::csb_platform_binary
  27. unsigned offsetof_csb_platform_path = 0xA8; // cs_blob::csb_platform_path