Searched refs:leak (Results 1 – 14 of 14) sorted by relevance
83 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()
33 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()
43 Box::leak(Box::new(SigQueue::default())) as *mut SigQueue as *mut c_void; in initial_proc_init_signal()
129 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()
120 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()
124 .push(Box::leak(Box::new(CFSQueue::new(null_mut())))); in new()
114 __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()
86 let f = Box::leak(Box::new(FpState::default())); in fp_state_save()
305 pub unsafe fn leak(this: Self) -> &'rwlock T { in leak() method381 pub unsafe fn leak(this: Self) -> &'rwlock T { in leak() method399 pub unsafe fn leak(this: Self) -> &'rwlock T { in leak() method
189 pub unsafe fn leak(this: Self) -> &'a mut T { in leak() method
52 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()
62 - 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功能.
41 __SORTIRQ_VECTORS = Box::leak(Box::new(Softirq::new())); in softirq_init()
78 Box::leak(Box::new([0u8; (1 << 20) as usize])) as *mut u8 as usize; in ahci_rust_init()