1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
use super::{bool_t, uint_t, ER, ID, PRI};

/// システム状態管理機能
#[cfg(any(
    feature = "asp3",
    feature = "fmp3",
    feature = "solid_asp3",
    feature = "solid_fmp3"
))]
extern "C" {
    pub fn rot_rdq(tskpri: PRI) -> ER;
    pub fn get_tid(p_tskid: *mut ID) -> ER;
    pub fn get_lod(tskpri: PRI, p_load: *mut uint_t) -> ER;
    pub fn get_nth(tskpri: PRI, nth: uint_t, p_tskid: *mut ID) -> ER;
    pub fn loc_cpu() -> ER;
    pub fn unl_cpu() -> ER;
    pub fn dis_dsp() -> ER;
    pub fn ena_dsp() -> ER;
    pub fn sns_ctx() -> bool_t;
    pub fn sns_loc() -> bool_t;
    pub fn sns_dsp() -> bool_t;
    pub fn sns_dpn() -> bool_t;
    pub fn sns_ker() -> bool_t;
    pub fn ext_ker() -> ER;
}

#[cfg(any(feature = "fmp3", feature = "solid_fmp3"))]
extern "C" {
    pub fn mrot_rdq(tskpri: PRI, prcid: ID) -> ER;
    pub fn get_pid(p_prcid: *mut ID) -> ER;
    pub fn mget_lod(schedid: ID, tskpri: PRI, p_load: *mut uint_t) -> ER;
    pub fn mget_nth(schedid: ID, tskpri: PRI, nth: uint_t, p_tskid: *mut ID) -> ER;
}