Searched refs:alloc (Results 1 – 25 of 87) sorted by relevance
1234
/DragonOS-0.1.8/kernel/src/libs/ |
D | align.rs | 4 use core::{alloc::GlobalAlloc, fmt::Debug, ptr::Unique}; 21 const LAYOUT: core::alloc::Layout = { 29 let layout = core::alloc::Layout::from_size_align( 103 Self::new_zeroed().unwrap_or_else(|_| alloc::alloc::handle_alloc_error(Self::LAYOUT)); in clone()
|
D | casting.rs | 21 use alloc::sync::Arc;
|
D | printk.rs | 7 use alloc::vec::Vec; 54 use alloc; 55 …$crate::libs::printk::PrintkWriter.__write_string_color($FRcolor, $BKcolor, alloc::fmt::format(for…
|
/DragonOS-0.1.8/kernel/src/driver/base/platform/ |
D | platform_driver.rs | 6 use alloc::sync::Arc;
|
D | platform_device.rs | 6 use alloc::sync::Arc;
|
/DragonOS-0.1.8/kernel/.cargo/ |
D | config.toml | 5 build-std = ["core", "compiler_builtins", "alloc"]
|
/DragonOS-0.1.8/user/libs/libc/.cargo/ |
D | config.toml | 5 build-std = ["core", "compiler_builtins", "alloc"]
|
/DragonOS-0.1.8/kernel/src/driver/keyboard/ |
D | ps2_keyboard.rs | 3 use alloc::sync::{Arc, Weak}; 172 fn fs(&self) -> alloc::sync::Arc<dyn crate::filesystem::vfs::FileSystem> { in fs() 180 fn list(&self) -> Result<alloc::vec::Vec<alloc::string::String>, SystemError> { in list()
|
/DragonOS-0.1.8/kernel/ |
D | Cargo.toml | 18 thingbuf = { version = "0.1.3", default-features = false, features = ["alloc"] } 20 …ltcp.git", rev = "9027825", default-features = false, features = ["log", "alloc", "socket-raw", "…
|
/DragonOS-0.1.8/kernel/src/driver/net/ |
D | mod.rs | 1 use alloc::string::String;
|
/DragonOS-0.1.8/kernel/src/ipc/ |
D | pipe.rs | 14 use alloc::sync::{Arc, Weak}; 216 ) -> Result<(alloc::string::String, crate::filesystem::vfs::Metadata), SystemError> { in get_entry_name_and_metadata() 227 fn list(&self) -> Result<alloc::vec::Vec<alloc::string::String>, SystemError> { in list()
|
/DragonOS-0.1.8/kernel/src/filesystem/vfs/ |
D | mount.rs | 3 use alloc::{ 298 fn get_entry_name(&self, ino: InodeId) -> Result<alloc::string::String, SystemError> { in get_entry_name() 306 ) -> Result<(alloc::string::String, super::Metadata), SystemError> { in get_entry_name_and_metadata() 316 fn list(&self) -> Result<alloc::vec::Vec<alloc::string::String>, SystemError> { in list()
|
/DragonOS-0.1.8/kernel/src/filesystem/sysfs/ |
D | devices.rs | 3 use alloc::sync::Arc;
|
D | fs.rs | 3 use alloc::sync::Arc;
|
D | class.rs | 3 use alloc::sync::Arc;
|
/DragonOS-0.1.8/kernel/src/mm/allocator/ |
D | kernel_allocator.rs | 8 alloc::{AllocError, GlobalAlloc, Layout}, 83 unsafe fn alloc(&self, layout: Layout) -> *mut u8 { in alloc() method
|
/DragonOS-0.1.8/kernel/src/io/ |
D | disk_info.rs | 4 use alloc::sync::{Arc, Weak};
|
/DragonOS-0.1.8/kernel/src/driver/video/ |
D | mod.rs | 6 use alloc::sync::Arc;
|
/DragonOS-0.1.8/kernel/src/driver/tty/ |
D | tty_device.rs | 1 use alloc::{ 105 fn set_fs(&self, fs: alloc::sync::Weak<crate::filesystem::devfs::DevFS>) { in set_fs() 224 fn list(&self) -> Result<alloc::vec::Vec<alloc::string::String>, SystemError> { in list()
|
/DragonOS-0.1.8/kernel/src/process/ |
D | initial_proc.rs | 3 use alloc::boxed::Box;
|
/DragonOS-0.1.8/kernel/src/driver/disk/ahci/ |
D | mod.rs | 23 use alloc::boxed::Box; 24 use alloc::string::ToString; 25 use alloc::{format, string::String, sync::Arc, vec::Vec};
|
/DragonOS-0.1.8/kernel/src/mm/ |
D | percpu.rs | 3 use alloc::vec::Vec;
|
/DragonOS-0.1.8/kernel/src/time/ |
D | sleep.rs | 3 use alloc::{boxed::Box, sync::Arc};
|
/DragonOS-0.1.8/kernel/src/ |
D | lib.rs | 43 extern crate alloc;
|
/DragonOS-0.1.8/kernel/src/driver/base/map/ |
D | mod.rs | 3 use alloc::{collections::BTreeMap, sync::Arc, vec::Vec};
|
1234