Home
last modified time | relevance | path

Searched refs:PerCpuVar (Results 1 – 11 of 11) sorted by relevance

/DragonOS/kernel/src/mm/
H A Dpercpu.rs57 pub struct PerCpuVar<T> { struct
62 impl<T> PerCpuVar<T> { impl
110 unsafe impl<T> Sync for PerCpuVar<T> {} implementation
111 unsafe impl<T> Send for PerCpuVar<T> {} implementation
/DragonOS/kernel/src/arch/riscv64/
H A Dcpu.rs6 mm::percpu::{PerCpu, PerCpuVar},
40 static mut LOCAL_CONTEXT: Option<PerCpuVar<LocalContext>> = None;
43 pub(super) fn local_context() -> &'static PerCpuVar<LocalContext> { in local_context()
122 let ctx = PerCpuVar::new(data).unwrap(); in init_local_context()
/DragonOS/kernel/src/exception/
H A Dsoftirq.rs18 mm::percpu::{PerCpu, PerCpuVar},
105 cpu_running_count: PerCpuVar<AtomicI16>,
124 let cpu_running_count = PerCpuVar::new(percpu_count).unwrap(); in new()
132 fn cpu_running_count(&self) -> &PerCpuVar<AtomicI16> { in cpu_running_count()
274 cpu_running_count: &'a PerCpuVar<AtomicI16>,
278 fn new(cpu_running_count: &'a PerCpuVar<AtomicI16>) -> RunningCountGuard<'a> { in new()
H A Dirqdesc.rs29 mm::percpu::PerCpuVar,
693 per_cpu_dev_id: Option<PerCpuVar<Arc<DeviceId>>>,
/DragonOS/kernel/src/bpf/map/
H A Dlru.rs3 use crate::mm::percpu::{PerCpu, PerCpuVar};
99 per_cpu_maps: PerCpuVar<LruMap>,
118 let per_cpu_maps = PerCpuVar::new(data).ok_or(SystemError::EINVAL)?; in new()
H A Dhash_map.rs4 use crate::mm::percpu::{PerCpu, PerCpuVar};
103 per_cpu_maps: PerCpuVar<BpfHashMap>,
121 let per_cpu_maps = PerCpuVar::new(data).ok_or(SystemError::EINVAL)?; in new()
H A Darray_map.rs9 use crate::mm::percpu::{PerCpu, PerCpuVar};
165 per_cpu_data: PerCpuVar<ArrayMap>,
184 let per_cpu_data = PerCpuVar::new(data).ok_or(SystemError::EINVAL)?; in new()
/DragonOS/kernel/src/smp/cpu/
H A Dmod.rs10 mm::percpu::{PerCpu, PerCpuVar},
84 cpuhp_state: PerCpuVar<CpuHpCpuState>,
97 let cpuhp_state = PerCpuVar::new(data).unwrap(); in new()
/DragonOS/kernel/src/driver/irqchip/
H A Driscv_sifive_plic.rs50 percpu::{PerCpu, PerCpuVar},
56 static mut PLIC_HANDLERS: Option<PerCpuVar<PlicHandler>> = None;
66 fn plic_handlers() -> &'static PerCpuVar<PlicHandler> { in plic_handlers()
406 PerCpuVar::new( in riscv_sifive_plic_init()
/DragonOS/kernel/src/sched/
H A Dmod.rs33 mm::percpu::{PerCpu, PerCpuVar},
50 static CPU_RUNQUEUE: Lazy<PerCpuVar<Arc<CpuRunQueue>>> = PerCpuVar::define_lazy();
994 CPU_RUNQUEUE.init(PerCpuVar::new(cpu_runqueue).unwrap()); in sched_init()
/DragonOS/kernel/src/process/
H A Dmod.rs48 percpu::{PerCpu, PerCpuVar},
88 pub static mut PROCESS_SWITCH_RESULT: Option<PerCpuVar<SwitchResult>> = None;
148 PROCESS_SWITCH_RESULT = Some(PerCpuVar::new(switch_res_vec).unwrap()); in init_switch_result()