Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/process/
Dc_adapter.rs83 return Box::leak(Box::new(FpState::default())) as *mut FpState as usize as *mut c_void; in rs_dup_fpstate()
89 let state: &mut FpState = Box::leak(Box::new(s.clone())); in rs_dup_fpstate()
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.rs129 let fd_vec: &mut FileDescriptorVec = Box::leak(FileDescriptorVec::new()); in init_files()
162 let new_fd_vec: &mut FileDescriptorVec = Box::leak(old_fds.clone()); in copy_files()
/DragonOS-0.1.8/kernel/src/sched/
Drt.rs120 result.cpu_queue[cpu_id as usize].push(Box::leak(Box::new(RTQueue::new()))); in new()
127 .push(Box::leak(Box::new(LinkedList::new()))); in new()
Dcfs.rs124 .push(Box::leak(Box::new(CFSQueue::new(null_mut())))); in new()
/DragonOS-0.1.8/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.8/kernel/src/arch/x86_64/
Dfpu.rs86 let f = Box::leak(Box::new(FpState::default())); in fp_state_save()
/DragonOS-0.1.8/kernel/src/libs/
Drwlock.rs305 pub unsafe fn leak(this: Self) -> &'rwlock T { in leak() method
381 pub unsafe fn leak(this: Self) -> &'rwlock T { in leak() method
399 pub unsafe fn leak(this: Self) -> &'rwlock T { in leak() method
Dspinlock.rs189 pub unsafe fn leak(this: Self) -> &'a mut T { in leak() method
/DragonOS-0.1.8/kernel/src/filesystem/vfs/
Dcore.rs52 let root_inode = Box::leak(Box::new(mount_fs.root_inode())); in vfs_init()
146 let new_root_inode = Box::leak(Box::new(new_fs.root_inode())); in migrate_virtual_filesystem()
/DragonOS-0.1.8/docs/community/ChangeLog/V0.1.x/
DV0.1.8.md62 - feature: spinlock守卫新增leak,spinlock新增force unlock功能.(#329)
177 … 修正rwlock有的地方由于未使用ManuallyDrop导致的use after free && spinlock守卫新增leak,spinlock新增force unlock功能.(#329)
180 2. spinlock守卫新增leak,spinlock新增force unlock功能.
/DragonOS-0.1.8/kernel/src/exception/
Dsoftirq.rs41 __SORTIRQ_VECTORS = Box::leak(Box::new(Softirq::new())); in softirq_init()
/DragonOS-0.1.8/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()