Lines Matching refs:pcb
16 pub extern "C" fn process_is_stopped(pcb: *const process_control_block) -> bool { in process_is_stopped()
17 let state: u64 = unsafe { read_volatile(&(*pcb).state) } as u64; in process_is_stopped()
43 let pcb = unsafe { _pcb.as_mut() }.unwrap(); in process_try_to_wake_up() localVariable
48 write_volatile(&mut pcb.state, PROC_RUNNING as u64); in process_try_to_wake_up()
57 if unsafe { read_volatile(&pcb.state) } & _state != 0 { in process_try_to_wake_up()
60 write_volatile(&mut pcb.state, PROC_RUNNING as u64); in process_try_to_wake_up()
61 sched_enqueue(pcb); in process_try_to_wake_up()
75 pub extern "C" fn process_wake_up_state(pcb: *mut process_control_block, state: u64) -> bool { in process_wake_up_state()
76 return process_try_to_wake_up(pcb, state, 0); in process_wake_up_state()
81 pub fn process_kick(pcb: *mut process_control_block) { in process_kick()
83 let cpu = process_cpu(pcb); in process_kick()
85 if cpu != smp_get_processor_id() && process_is_executing(pcb) { in process_kick()
93 pub fn process_cpu(pcb: *const process_control_block) -> u32 { in process_cpu()
94 unsafe { read_volatile(&(*pcb).cpu_id) } in process_cpu()
101 pub fn process_is_executing(pcb: *const process_control_block) -> bool { in process_is_executing()
102 return cpu_executing(process_cpu(pcb)) == pcb; in process_is_executing()