1#![allow(unused_imports)]
9
10use zerocopy::IntoBytes;
11
12use crate::zx_common::*;
13
14#[repr(u32)]
15#[derive(Clone, Copy, Debug, Eq, IntoBytes, PartialEq)]
16pub enum ProfileInfoType {
17 ZxProfileInfoScheduler = 1,
18}
19
20impl ProfileInfoType {
21 pub fn from_raw(raw: u32) -> Option<Self> {
22 match raw {
23 1 => Some(Self::ZxProfileInfoScheduler),
24
25 _ => None,
26 }
27 }
28}
29
30pub const ZX_PRIORITY_LOWEST: i32 = 0;
31
32pub const ZX_PRIORITY_LOW: i32 = 8;
33
34pub const ZX_PRIORITY_DEFAULT: i32 = 16;
35
36pub const ZX_PRIORITY_HIGH: i32 = 24;
37
38pub const ZX_PRIORITY_HIGHEST: i32 = 31;
39
40#[repr(C)]
41#[derive(Clone, Copy, Debug, Eq, PartialEq)]
42pub struct ProfileInfo {
43 pub r#type: ProfileInfoType,
44}