offsetof.c 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. unsigned offsetof_p_pid = 0x10; // proc_t::p_pid
  2. unsigned offsetof_task = 0x18; // proc_t::task
  3. unsigned offsetof_p_uid = 0x30; // proc_t::p_uid
  4. unsigned offsetof_p_gid = 0x34; // proc_t::p_uid
  5. unsigned offsetof_p_ruid = 0x38; // proc_t::p_uid
  6. unsigned offsetof_p_rgid = 0x3c; // proc_t::p_uid
  7. unsigned offsetof_p_ucred = 0x100; // proc_t::p_ucred
  8. unsigned offsetof_p_csflags = 0x2a8; // proc_t::p_csflags
  9. unsigned offsetof_itk_self = 0xD8; // task_t::itk_self (convert_task_to_port)
  10. unsigned offsetof_itk_sself = 0xE8; // task_t::itk_sself (task_get_special_port)
  11. unsigned offsetof_itk_bootstrap = 0x2b8; // task_t::itk_bootstrap (task_get_special_port)
  12. unsigned offsetof_itk_space = 0x308; // task_t::itk_space
  13. unsigned offsetof_ip_mscount = 0x9C; // ipc_port_t::ip_mscount (ipc_port_make_send)
  14. unsigned offsetof_ip_srights = 0xA0; // ipc_port_t::ip_srights (ipc_port_make_send)
  15. unsigned offsetof_ip_kobject = 0x68; // ipc_port_t::ip_kobject
  16. unsigned offsetof_p_textvp = 0x248; // proc_t::p_textvp
  17. unsigned offsetof_p_textoff = 0x250; // proc_t::p_textoff
  18. unsigned offsetof_p_cputype = 0x2c0; // proc_t::p_cputype
  19. unsigned offsetof_p_cpu_subtype = 0x2c4; // proc_t::p_cpu_subtype
  20. unsigned offsetof_special = 2 * sizeof(long); // host::special
  21. unsigned offsetof_ipc_space_is_table = 0x20; // ipc_space::is_table?..
  22. unsigned offsetof_ucred_cr_uid = 0x18; // ucred::cr_uid
  23. unsigned offsetof_ucred_cr_ruid = 0x1c; // ucred::cr_ruid
  24. unsigned offsetof_ucred_cr_svuid = 0x20; // ucred::cr_svuid
  25. unsigned offsetof_v_type = 0x70; // vnode::v_type
  26. unsigned offsetof_v_id = 0x74; // vnode::v_id
  27. unsigned offsetof_v_ubcinfo = 0x78; // vnode::v_ubcinfo
  28. unsigned offsetof_ubcinfo_csblobs = 0x50; // ubc_info::csblobs
  29. unsigned offsetof_csb_cputype = 0x8; // cs_blob::csb_cputype
  30. unsigned offsetof_csb_flags = 0x12; // cs_blob::csb_flags
  31. unsigned offsetof_csb_base_offset = 0x16; // cs_blob::csb_base_offset
  32. unsigned offsetof_csb_entitlements_offset = 0x98; // cs_blob::csb_entitlements
  33. unsigned offsetof_csb_signer_type = 0xA0; // cs_blob::csb_signer_type
  34. unsigned offsetof_csb_platform_binary = 0xA4; // cs_blob::csb_platform_binary
  35. unsigned offsetof_csb_platform_path = 0xA8; // cs_blob::csb_platform_path
  36. unsigned offsetof_t_flags = 0x3a0; // task::t_flags