mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-02 21:00:55 +00:00
feat(power-management-core): hackfix to get sysctls working with tokio
Signed-off-by: Ariadne Conill <ariadne@ariadne.space>
This commit is contained in:
parent
20018b6170
commit
d5af8f4851
@ -98,7 +98,7 @@ impl XenCall {
|
||||
value: SysctlValue {
|
||||
cputopoinfo: SysctlCputopoinfo {
|
||||
num_cpus: 0,
|
||||
handle: null_mut(),
|
||||
handle: 0,
|
||||
},
|
||||
},
|
||||
};
|
||||
@ -958,7 +958,7 @@ impl XenCall {
|
||||
value: SysctlValue {
|
||||
cputopoinfo: SysctlCputopoinfo {
|
||||
num_cpus: 0,
|
||||
handle: null_mut(),
|
||||
handle: 0,
|
||||
},
|
||||
},
|
||||
};
|
||||
@ -979,7 +979,7 @@ impl XenCall {
|
||||
value: SysctlValue {
|
||||
cputopoinfo: SysctlCputopoinfo {
|
||||
num_cpus: cpus,
|
||||
handle: topos.as_mut_ptr(),
|
||||
handle: topos.as_mut_ptr() as c_ulong,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
@ -747,7 +747,7 @@ pub struct SysctlPmOp {
|
||||
#[derive(Clone, Copy, Debug)]
|
||||
pub struct SysctlCputopoinfo {
|
||||
pub num_cpus: u32,
|
||||
pub handle: *mut SysctlCputopo,
|
||||
pub handle: c_ulong,
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
|
Loading…
Reference in New Issue
Block a user