2022-01-25 19:40:37 -06:00
|
|
|
//! Process definition and general utilities surrounding them
|
|
|
|
|
2022-03-16 05:39:01 -05:00
|
|
|
use super::capabilities::Capabilities;
|
|
|
|
use super::priority::Priority;
|
|
|
|
use crate::stdio::StdIO;
|
|
|
|
use kernel::proccess::PID;
|
2022-01-25 19:40:37 -06:00
|
|
|
|
|
|
|
/// A process
|
|
|
|
#[derive(Clone, Debug)]
|
|
|
|
pub struct Process {
|
|
|
|
/// Internal PID
|
2022-03-16 05:39:01 -05:00
|
|
|
pub pid: 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
|
|
|
|
2022-03-16 05:39:01 -05:00
|
|
|
/// A process's current working directory
|
2022-02-12 03:25:02 -06:00
|
|
|
pub working_dir: String,
|
2022-03-16 05:39:01 -05:00
|
|
|
pub stdio: StdIO,
|
2022-01-25 19:40:37 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
impl Process {}
|