Debian Codegraph @

third_party/rust/mach/src/dyld_kernel.rs

raw
1 //! This module roughly corresponds to `mach/dyld_kernel.h`.
2
3 use boolean::boolean_t;
4 use mach_types::{fsid_t, fsobj_id_t, uuid_t};
5
6 #[repr(C)]
7 #[derive(Copy, Clone, Debug, Default, Hash, PartialOrd, PartialEq, Eq, Ord)]
8 pub struct dyld_kernel_image_info {
9 pub uuid: uuid_t,
10 pub fsobjid: fsobj_id_t,
11 pub fsid: fsid_t,
12 pub load_addr: u64,
13 }
14
15 #[allow(non_snake_case)]
16 #[repr(C)]
17 #[derive(Copy, Clone, Debug, Default, Hash, PartialOrd, PartialEq, Eq, Ord)]
18 pub struct dyld_kernel_process_info {
19 pub cache_image_info: dyld_kernel_image_info,
20 pub timestamp: u64,
21 pub imageCount: u32,
22 pub initialImageCount: u32,
23 pub dyldState: u8,
24 pub no_cache: boolean_t,
25 pub private_cache: boolean_t,
26 }
27
28 pub type dyld_kernel_image_info_t = dyld_kernel_image_info;
29 pub type dyld_kernel_process_info_t = dyld_kernel_process_info;
30 pub type dyld_kernel_image_info_array_t = *mut dyld_kernel_image_info_t;