diff options
author | David Carlier <devnexen@gmail.com> | 2021-11-25 06:48:02 +0000 |
---|---|---|
committer | David Carlier <devnexen@gmail.com> | 2021-11-25 06:48:02 +0000 |
commit | bbcd8c84cadeaa2117f728c46c55b1868fe25d64 (patch) | |
tree | eaa93ea4ead565c5ea7fd6ed7d586b1f8ba4ded5 /src/unix/bsd/freebsdlike/dragonfly/mod.rs | |
parent | 3684bd3c551dc039c4c7dab98a7897a93cd1e066 (diff) | |
download | rust-libc-bbcd8c84cadeaa2117f728c46c55b1868fe25d64.tar.gz |
dragonflybsd adding few new ioctl queries
Diffstat (limited to 'src/unix/bsd/freebsdlike/dragonfly/mod.rs')
-rw-r--r-- | src/unix/bsd/freebsdlike/dragonfly/mod.rs | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/unix/bsd/freebsdlike/dragonfly/mod.rs b/src/unix/bsd/freebsdlike/dragonfly/mod.rs index a997769da4..53d930686d 100644 --- a/src/unix/bsd/freebsdlike/dragonfly/mod.rs +++ b/src/unix/bsd/freebsdlike/dragonfly/mod.rs @@ -242,6 +242,27 @@ s! { pub cp_sample_sp: u64, pub cp_msg: [::c_char; 32], } + + pub struct cpuctl_msr_args_t { + pub msr: ::c_int, + pub data: u64, + } + + pub struct cpuctl_cpuid_args_t { + pub level: ::c_int, + pub data: [u32; 4], + } + + pub struct cpuctl_cpuid_count_args_t { + pub level: ::c_int, + pub level_type: ::c_int, + pub data: [u32; 4], + } + + pub struct cpuctl_update_args_t { + pub data: *mut ::c_void, + pub size: ::size_t, + } } s_no_extra_traits! { @@ -889,6 +910,14 @@ pub const CTL_P1003_1B_SIGQUEUE_MAX: ::c_int = 24; pub const CTL_P1003_1B_TIMER_MAX: ::c_int = 25; pub const CTL_P1003_1B_MAXID: ::c_int = 26; +pub const CPUCTL_RSMSR: ::c_int = 0xc0106301; +pub const CPUCTL_WRMSR: ::c_int = 0xc0106302; +pub const CPUCTL_CPUID: ::c_int = 0xc0106303; +pub const CPUCTL_UPDATE: ::c_int = 0xc0106304; +pub const CPUCTL_MSRSBIT: ::c_int = 0xc0106305; +pub const CPUCTL_MSRCBIT: ::c_int = 0xc0106306; +pub const CPUCTL_CPUID_COUNT: ::c_int = 0xc0106307; + pub const EVFILT_READ: i16 = -1; pub const EVFILT_WRITE: i16 = -2; pub const EVFILT_AIO: i16 = -3; |