Home
last modified time | relevance | path

Searched refs:alloc (Results 1 – 25 of 87) sorted by relevance

1234

/DragonOS-0.1.8/kernel/src/libs/
Dalign.rs4 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()
Dcasting.rs21 use alloc::sync::Arc;
Dprintk.rs7 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/
Dplatform_driver.rs6 use alloc::sync::Arc;
Dplatform_device.rs6 use alloc::sync::Arc;
/DragonOS-0.1.8/kernel/.cargo/
Dconfig.toml5 build-std = ["core", "compiler_builtins", "alloc"]
/DragonOS-0.1.8/user/libs/libc/.cargo/
Dconfig.toml5 build-std = ["core", "compiler_builtins", "alloc"]
/DragonOS-0.1.8/kernel/src/driver/keyboard/
Dps2_keyboard.rs3 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/
DCargo.toml18 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/
Dmod.rs1 use alloc::string::String;
/DragonOS-0.1.8/kernel/src/ipc/
Dpipe.rs14 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/
Dmount.rs3 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/
Ddevices.rs3 use alloc::sync::Arc;
Dfs.rs3 use alloc::sync::Arc;
Dclass.rs3 use alloc::sync::Arc;
/DragonOS-0.1.8/kernel/src/mm/allocator/
Dkernel_allocator.rs8 alloc::{AllocError, GlobalAlloc, Layout},
83 unsafe fn alloc(&self, layout: Layout) -> *mut u8 { in alloc() method
/DragonOS-0.1.8/kernel/src/io/
Ddisk_info.rs4 use alloc::sync::{Arc, Weak};
/DragonOS-0.1.8/kernel/src/driver/video/
Dmod.rs6 use alloc::sync::Arc;
/DragonOS-0.1.8/kernel/src/driver/tty/
Dtty_device.rs1 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/
Dinitial_proc.rs3 use alloc::boxed::Box;
/DragonOS-0.1.8/kernel/src/driver/disk/ahci/
Dmod.rs23 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/
Dpercpu.rs3 use alloc::vec::Vec;
/DragonOS-0.1.8/kernel/src/time/
Dsleep.rs3 use alloc::{boxed::Box, sync::Arc};
/DragonOS-0.1.8/kernel/src/
Dlib.rs43 extern crate alloc;
/DragonOS-0.1.8/kernel/src/driver/base/map/
Dmod.rs3 use alloc::{collections::BTreeMap, sync::Arc, vec::Vec};

1234