[−][src]Static kernel::process::PROCS_POOL
pub static PROCS_POOL: Mutex<[ProcInPool; 256]>
An array holding all process information.
Examples
let pool = PROCS_POOL.lock(); let p = &mut pool[0]; if p.0 == false { println!("This pid is not occupied by any process."); } if p.0 == true { if p.1.is_none() { println!("The process is running on one CPU."); } else { println!("The process is to be scheduled."); assert_eq!(p.1.pid, 0); // process of PID x is stored at PROCS_POOL[x] } }