Home
last modified time | relevance | path

Searched refs:c_void (Results 1 – 14 of 14) sorted by relevance

/DragonOS-0.1.8/kernel/src/process/
Dsyscall.rs1 use core::ffi::{c_int, c_void};
10 fn c_sys_wait4(pid: pid_t, wstatus: *mut c_int, options: c_int, rusage: *mut c_void) -> c_int; in c_sys_wait4()
28 _path: *const c_void, in execve() argument
29 _argv: *const *const c_void, in execve() argument
30 _envp: *const *const c_void, in execve() argument
40 rusage: *mut c_void, in wait4() argument
Dc_adapter.rs1 use core::{ffi::c_void, ptr::null_mut};
80 pub extern "C" fn rs_dup_fpstate() -> *mut c_void { in rs_dup_fpstate()
83 return Box::leak(Box::new(FpState::default())) as *mut FpState as usize as *mut c_void; in rs_dup_fpstate()
91 return state as *mut FpState as usize as *mut c_void; in rs_dup_fpstate()
Dinitial_proc.rs1 use core::ffi::c_void;
43 Box::leak(Box::new(SigQueue::default())) as *mut SigQueue as *mut c_void; in initial_proc_init_signal()
Dprocess.rs2 ffi::c_void,
130 self.fds = fd_vec as *mut FileDescriptorVec as usize as *mut c_void; in init_files()
164 self.fds = new_fd_vec as *mut FileDescriptorVec as usize as *mut c_void; in copy_files()
334 self.address_space = Arc::into_raw(address_space) as *mut c_void; in set_address_space()
Dfork.rs1 use core::{ffi::c_void, ptr::null_mut, sync::atomic::compiler_fence};
104 Box::leak(Box::new(SigQueue::default())) as *mut SigQueue as *mut c_void; in process_copy_signal()
/DragonOS-0.1.8/kernel/src/ipc/
Dsignal_types.rs4 use core::ffi::c_void;
66 arg1: *mut ::core::ffi::c_void,
142 pub sa_handler: *mut core::ffi::c_void,
143 pub sa_sigaction: *mut core::ffi::c_void,
146 pub sa_restorer: *mut core::ffi::c_void,
550 pub fn from_c_void(p: *mut c_void) -> &'static mut SigQueue { in from_c_void()
633 pub ret_code_ptr: *mut core::ffi::c_void,
641 pub handler: *mut c_void,
665 pub sp: *mut c_void,
Dsyscall.rs2 ffi::{c_int, c_void},
195 (*old_act).sa_handler = sah as *mut c_void; in sigaction()
198 (*old_act).sa_restorer = old_ka.sa_restorer as *mut c_void; in sigaction()
Dsignal.rs2 ffi::c_void,
619 (*frame).handler = ka._u._sa_handler as usize as *mut c_void; in setup_frame()
643 (*frame).ret_code_ptr = ka.sa_restorer as usize as *mut c_void; in setup_frame()
/DragonOS-0.1.8/kernel/src/arch/x86_64/pci/
Dpci.rs11 use core::ffi::c_void;
51 acpi_iter_SDT(Some(acpi_get_MCFG), data_point as *mut usize as *mut c_void); in ecam_root()
/DragonOS-0.1.8/kernel/src/arch/x86_64/
Dfpu.rs6 ffi::c_void,
87 pcb.fp_state = f as *mut FpState as usize as *mut c_void; in fp_state_save()
Dsyscall.rs1 use core::{ffi::c_void, panic};
122 unsafe { set_system_trap_gate(0x80, 0, syscall_int as *mut c_void) }; // 系统调用门 in arch_syscall_init()
/DragonOS-0.1.8/kernel/src/syscall/
Dmod.rs2 ffi::{c_char, c_int, c_void, CStr},
579 path_ptr as *const c_void, in handle() constant
580 argv_ptr as *const *const c_void, in handle() constant
581 env_ptr as *const *const c_void, in handle() constant
589 let rusage = args[3] as *mut c_void; in handle()
/DragonOS-0.1.8/kernel/src/arch/x86_64/mm/
Dmod.rs31 use core::ffi::c_void;
237 &mut mb2_mem_info as *mut [multiboot_mmap_entry_t; 512] as usize as *mut c_void, in init_memory_area_from_multiboot2()
/DragonOS-0.1.8/kernel/src/time/
Dclocksource.rs2 ffi::c_void,
847 pub extern "C" fn rs_clocksource_watchdog_kthread(_data: c_void) -> i32 { in rs_clocksource_watchdog_kthread()