Home
last modified time | relevance | path

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

/DragonOS-0.1.5/kernel/src/process/
Dfork.rs32 let mut sig: &mut sighand_struct = Box::leak(Box::new(sighand_struct::default())); in process_copy_sighand()
88 let sig: &mut signal_struct = Box::leak(Box::new(signal_struct::default())); in process_copy_signal()
103 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.rs120 let fd_vec: &mut FileDescriptorVec = Box::leak(FileDescriptorVec::new()); in init_files()
153 let new_fd_vec: &mut FileDescriptorVec = Box::leak(Box::new(old_fds.clone())); in copy_files()
/DragonOS-0.1.5/kernel/src/sched/
Drt.rs30 RT_SCHEDULER_PTR = Box::leak(Box::new(SchedulerRT::new())); in sched_rt_init()
119 result.cpu_queue[cpu_id as usize].push(Box::leak(Box::new(RTQueue::new()))); in new()
126 .push(Box::leak(Box::new(LinkedList::new()))); in new()
Dcfs.rs30 CFS_SCHEDULER_PTR = Box::leak(Box::new(SchedulerCFS::new())); in sched_cfs_init()
129 .push(Box::leak(Box::new(CFSQueue::new(null_mut())))); in new()
/DragonOS-0.1.5/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.5/kernel/src/filesystem/vfs/
Dcore.rs52 let root_inode = Box::leak(Box::new(mount_fs.root_inode())); in vfs_init()
131 let new_root_inode = Box::leak(Box::new(new_fs.root_inode())); in migrate_virtual_filesystem()
/DragonOS-0.1.5/kernel/src/exception/
Dsoftirq.rs53 SOFTIRQ_HANDLER_PTR = Box::leak(Box::new(Softirq::default())); in softirq_init()
/DragonOS-0.1.5/kernel/src/driver/disk/ahci/
Dmod.rs77 Box::leak(Box::new([0u8; (1 << 20) as usize])) as *mut u8 as usize; in ahci_rust_init()