File tree Expand file tree Collapse file tree 3 files changed +41
-0
lines changed
src/unix/bsd/freebsdlike/dragonfly Expand file tree Collapse file tree 3 files changed +41
-0
lines changed Original file line number Diff line number Diff line change @@ -1214,6 +1214,7 @@ fn test_dragonflybsd(target: &str) {
1214
1214
"sys/event.h" ,
1215
1215
"sys/file.h" ,
1216
1216
"sys/ioctl.h" ,
1217
+ "sys/cpuctl.h" ,
1217
1218
"sys/ipc.h" ,
1218
1219
"sys/kinfo.h" ,
1219
1220
"sys/ktrace.h" ,
Original file line number Diff line number Diff line change @@ -143,6 +143,13 @@ CPU_CLR
143
143
CPU_ISSET
144
144
CPU_SET
145
145
CPU_ZERO
146
+ CPUCTL_RSMSR
147
+ CPUCTL_WRMSR
148
+ CPUCTL_CPUID
149
+ CPUCTL_UPDATE
150
+ CPUCTL_MSRSBIT
151
+ CPUCTL_MSRCBIT
152
+ CPUCTL_CPUID_COUNT
146
153
CRNCYSTR
147
154
CRTSCTS
148
155
CRTS_IFLOW
@@ -1214,6 +1221,10 @@ clock_getres
1214
1221
clock_settime
1215
1222
cmsgcred
1216
1223
cmsghdr
1224
+ cpuctl_cpuid_args_t
1225
+ cpuctl_cpuid_count_args_t
1226
+ cpuctl_msr_args_t
1227
+ cpuctl_update_args_t
1217
1228
daemon
1218
1229
devname_r
1219
1230
difftime
Original file line number Diff line number Diff line change @@ -242,6 +242,27 @@ s! {
242
242
pub cp_sample_sp: u64 ,
243
243
pub cp_msg: [ :: c_char; 32 ] ,
244
244
}
245
+
246
+ pub struct cpuctl_msr_args_t {
247
+ pub msr: :: c_int,
248
+ pub data: u64 ,
249
+ }
250
+
251
+ pub struct cpuctl_cpuid_args_t {
252
+ pub level: :: c_int,
253
+ pub data: [ u32 ; 4 ] ,
254
+ }
255
+
256
+ pub struct cpuctl_cpuid_count_args_t {
257
+ pub level: :: c_int,
258
+ pub level_type: :: c_int,
259
+ pub data: [ u32 ; 4 ] ,
260
+ }
261
+
262
+ pub struct cpuctl_update_args_t {
263
+ pub data: * mut :: c_void,
264
+ pub size: :: size_t,
265
+ }
245
266
}
246
267
247
268
s_no_extra_traits ! {
@@ -889,6 +910,14 @@ pub const CTL_P1003_1B_SIGQUEUE_MAX: ::c_int = 24;
889
910
pub const CTL_P1003_1B_TIMER_MAX : :: c_int = 25 ;
890
911
pub const CTL_P1003_1B_MAXID : :: c_int = 26 ;
891
912
913
+ pub const CPUCTL_RSMSR : :: c_int = 0xc0106301 ;
914
+ pub const CPUCTL_WRMSR : :: c_int = 0xc0106302 ;
915
+ pub const CPUCTL_CPUID : :: c_int = 0xc0106303 ;
916
+ pub const CPUCTL_UPDATE : :: c_int = 0xc0106304 ;
917
+ pub const CPUCTL_MSRSBIT : :: c_int = 0xc0106305 ;
918
+ pub const CPUCTL_MSRCBIT : :: c_int = 0xc0106306 ;
919
+ pub const CPUCTL_CPUID_COUNT : :: c_int = 0xc0106307 ;
920
+
892
921
pub const EVFILT_READ : i16 = -1 ;
893
922
pub const EVFILT_WRITE : i16 = -2 ;
894
923
pub const EVFILT_AIO : i16 = -3 ;
You can’t perform that action at this time.
0 commit comments