Home
last modified time | relevance | path

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

/DragonOS-0.1.7/kernel/src/process/
Dfork.rs33 let mut sig: &mut sighand_struct = Box::leak(Box::new(sighand_struct::default())); in process_copy_sighand()
89 let sig: &mut signal_struct = Box::leak(Box::new(signal_struct::default())); in process_copy_signal()
104 Box::leak(Box::new(SigQueue::default())) as *mut SigQueue as *mut c_void; in process_copy_signal()
Dinitial_proc.rs43 Box::leak(Box::new(SigQueue::default())) as *mut SigQueue as *mut c_void; in initial_proc_init_signal()
Dprocess.rs127 let fd_vec: &mut FileDescriptorVec = Box::leak(FileDescriptorVec::new()); in init_files()
160 let new_fd_vec: &mut FileDescriptorVec = Box::leak(old_fds.clone()); in copy_files()
368 return Box::leak(Box::new(FpState::default())) as *mut FpState as usize as *mut c_void; in rs_dup_fpstate()
374 let state: &mut FpState = Box::leak(Box::new(s.clone())); in rs_dup_fpstate()
/DragonOS-0.1.7/kernel/src/sched/
Drt.rs30 RT_SCHEDULER_PTR = Box::leak(Box::new(SchedulerRT::new())); in sched_rt_init()
122 result.cpu_queue[cpu_id as usize].push(Box::leak(Box::new(RTQueue::new()))); in new()
129 .push(Box::leak(Box::new(LinkedList::new()))); in new()
Dcfs.rs30 CFS_SCHEDULER_PTR = Box::leak(Box::new(SchedulerCFS::new())); in sched_cfs_init()
125 .push(Box::leak(Box::new(CFSQueue::new(null_mut())))); in new()
/DragonOS-0.1.7/kernel/src/filesystem/sysfs/
Dmod.rs114 __SYS_DEVICES_INODE = Box::leak(Box::new(devices)); in new()
121 __SYS_BUS_INODE = Box::leak(Box::new(bus)); in new()
128 __SYS_CLASS_INODE = Box::leak(Box::new(class)); in new()
135 __SYS_FS_INODE = Box::leak(Box::new(fs)); in new()
/DragonOS-0.1.7/kernel/src/libs/
Drwlock.rs264 pub fn leak(this: Self) -> &'rwlock T { in leak() method
333 pub fn leak(this: Self) -> &'rwlock T { in leak() method
344 pub fn leak(this: Self) -> &'rwlock T { in leak() method
/DragonOS-0.1.7/kernel/src/arch/x86_64/
Dfpu.rs86 let f = Box::leak(Box::new(FpState::default())); in fp_state_save()
/DragonOS-0.1.7/kernel/src/filesystem/vfs/
Dcore.rs54 let root_inode = Box::leak(Box::new(mount_fs.root_inode())); in vfs_init()
148 let new_root_inode = Box::leak(Box::new(new_fs.root_inode())); in migrate_virtual_filesystem()
/DragonOS-0.1.7/kernel/src/driver/disk/ahci/
Dmod.rs78 Box::leak(Box::new([0u8; (1 << 20) as usize])) as *mut u8 as usize; in ahci_rust_init()
/DragonOS-0.1.7/kernel/src/exception/
Dsoftirq.rs42 __SORTIRQ_VECTORS = Box::leak(Box::new(Softirq::new())); in softirq_init()