1
0
Fork 0
forked from AbleOS/ableos
ableos_time/ableos/src/scheduler/proc.rs

28 lines
527 B
Rust
Raw Normal View History

2022-01-25 19:40:37 -06:00
//! Process definition and general utilities surrounding them
2022-02-03 13:47:58 -06:00
use super::{capabilities::Capabilities, Priority};
2022-01-25 19:40:37 -06:00
/// Process Identification
2022-02-01 15:27:40 -06:00
#[derive(Clone, Copy, PartialEq, Debug)]
2022-02-03 13:47:58 -06:00
#[repr(C)]
2022-01-25 19:40:37 -06:00
pub struct PID(pub usize);
/// A process
#[derive(Clone, Debug)]
pub struct Process {
/// Internal PID
pub id: PID,
2022-02-04 18:47:05 -06:00
/// Process password
pub password: u128,
2022-01-25 19:40:37 -06:00
///
pub capabilities: Capabilities,
/// A process's priority
pub priority: Priority,
2022-02-12 03:25:02 -06:00
///
pub working_dir: String,
2022-01-25 19:40:37 -06:00
}
impl Process {}