Home
last modified time | relevance | path

Searched refs:func (Results 1 – 12 of 12) sorted by relevance

/DragonOS/kernel/src/process/
H A Dkthread.rs116 Self::UsizeClosure((func, arg)) => func(arg), in run()
117 Self::EmptyClosure((func, _arg)) => func(), in run()
118 Self::StaticUsizeClosure((func, arg)) => func(arg), in run()
119 Self::StaticEmptyClosure((func, _arg)) => func(), in run()
120 Self::IrqThread((func, arg)) => { in run()
121 func(arg).map(|_| 0).unwrap_or_else(|e| e.to_posix_errno()) in run()
152 pub fn new(func: KernelThreadClosure, name: String) -> Arc<Self> { in new()
154 closure: SpinLock::new(Some(Box::new(func))), in new()
339 pub fn create(func: KernelThreadClosure, name: String) -> Option<Arc<ProcessControlBlock>> { in create()
340 let info = KernelThreadCreateInfo::new(func, name); in create()
[all …]
H A Dptrace.h24 unsigned long func; member
H A Dfork.rs115 pub func: VirtAddr, field
138 func: null_addr, in new()
/DragonOS/kernel/crates/kprobe/src/arch/
H A Dmod.rs58 func: fn(&dyn ProbeArgs), field
62 pub fn new(func: fn(&dyn ProbeArgs)) -> Self { in new()
63 ProbeHandler { func } in new()
67 (self.func)(trap_frame); in call()
109 pub fn with_fault_handler(mut self, func: fn(&dyn ProbeArgs)) -> Self { in with_fault_handler()
110 self.fault_handler = Some(ProbeHandler::new(func)); in with_fault_handler()
/DragonOS/kernel/src/exception/
H A Dmsi.rs84 func: Option<&'static dyn MsiDescFunc>, field
111 func: None, in new()
/DragonOS/kernel/src/arch/x86_64/pci/
H A Dpci.rs23 fn read_config_early(bus: u8, slot: u8, func: u8, offset: u8) -> u8 { in read_config_early()
30 | ((func as u32) << 8) in read_config_early()
/DragonOS/kernel/src/arch/x86_64/interrupt/
H A Dmod.rs127 pub func: ::core::ffi::c_ulong, field
162 func: 0, in new()
/DragonOS/docs/community/code_contribution/
H A Dc-coding-style.md126 void *func(char* s, int **p);
/DragonOS/kernel/src/time/
H A Dtimer.rs179 let func = timer.timer_func.take(); in run() localVariable
181 let r = func.map(|mut f| f.run()).unwrap_or(Ok(())); in run()
/DragonOS/kernel/crates/rbpf/src/
H A Dcranelift.rs135 ctx.func = Function::with_name_signature(UserFuncName::testcase(name.as_bytes()), sig); in compile_function()
139 let mut builder: FunctionBuilder = FunctionBuilder::new(&mut ctx.func, &mut func_ctx); in compile_function()
197 let func_ref = self.module.declare_func_in_func(func_id, bcx.func); in build_function_prelude()
/DragonOS/docs/community/ChangeLog/V0.1.x/
H A DV0.1.3.md458 Patch add abort func (#120)
/DragonOS/kernel/src/driver/tty/virtual_terminal/
H A Dvirtual_console.rs245 pub fn set_driver_funcs(&mut self, func: Weak<dyn ConsoleSwitch>) { in set_driver_funcs()
246 self.driver_funcs = Some(func); in set_driver_funcs()