Searched refs:PerCpuVar (Results 1 – 11 of 11) sorted by relevance
/DragonOS/kernel/src/mm/ |
H A D | percpu.rs | 57 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 D | cpu.rs | 6 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 D | softirq.rs | 18 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 D | irqdesc.rs | 29 mm::percpu::PerCpuVar, 693 per_cpu_dev_id: Option<PerCpuVar<Arc<DeviceId>>>,
|
/DragonOS/kernel/src/bpf/map/ |
H A D | lru.rs | 3 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 D | hash_map.rs | 4 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 D | array_map.rs | 9 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 D | mod.rs | 10 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 D | riscv_sifive_plic.rs | 50 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 D | mod.rs | 33 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 D | mod.rs | 48 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()
|