Home
last modified time | relevance | path

Searched defs:new (Results 1 – 25 of 248) sorted by relevance

12345678910

/DragonOS/tools/debugging/logmonitor/src/
H A Dlogging.rs32 pub fn new(tui_receiver: Option<mpsc::Receiver<String>>) -> Self { in new() method
42 pub fn new(sender: mpsc::Sender<String>) -> Self { in new() method
H A Dapp.rs34 pub fn new(title: &'a str) -> Self { in new() method
113 pub fn new(titles: Vec<&'a str>) -> TabsState<'a> { in new() method
156 pub fn new(lower: u64, upper: u64) -> RandomSignal { in new() method
/DragonOS/kernel/src/driver/block/cache/
H A Dcache_iter.rs16 pub fn new(lba_id: BlockId, data_start_addr: BlockId, block_size: usize) -> Self { in new() method
52 pub fn new(lba_id_start: BlockId, count: usize, block_size: usize) -> Self { in new() method
90 pub fn new(lba_id: BlockId, index: usize) -> Self { in new() method
H A Dcached_block_device.rs198 pub fn new(space: CacheSpace) -> Self { in new() method
230 pub fn new() -> Self { in new() method
313 pub fn new(inner: CacheMapper) -> Self { in new() method
340 pub fn new() -> Self { in new() method
393 pub fn new() -> Self { in new() method
/DragonOS/kernel/src/namespaces/
H A Duser_namespace.rs68 pub fn new(name: String) -> Self { in new() method
97 pub fn new() -> Self { in new() method
106 pub fn new() -> Self { in new() method
116 pub fn new() -> Self { in new() method
H A Dmnt_namespace.rs77 pub fn new() -> Self { in new() method
100 pub fn new(name: String) -> Self { in new() method
142 pub fn new() -> Self { in new() method
/DragonOS/build-scripts/kernel_build/src/utils/
H A Dcargo_handler.rs14 fn new() -> Self { in new() method
77 pub fn new() -> Self { in new() method
/DragonOS/tools/debugging/logmonitor/src/backend/
H A Dloader.rs43 pub fn new(kernel: PathBuf) -> Self { in new() method
69 pub fn new() -> Self { in new() method
96 pub fn new(sym: Sym, name: String) -> Self { in new() method
H A Dmod.rs27 pub fn new(command_line_args: CommandLineArgs, sender: mpsc::Sender<Event>) -> Arc<Self> { in new() method
63 pub fn new() -> Self { in new() method
80 fn new( in new() method
/DragonOS/kernel/src/libs/lib_ui/font/
H A Dmod.rs24 pub const fn new( in new() method
63 pub const fn new(width: usize, height: usize) -> Self { in new() method
76 pub const fn new(data: &'static [u8], width: usize) -> Self { in new() method
/DragonOS/kernel/crates/rust-slabmalloc/src/
H A Dzone.rs66 pub const fn new() -> ZoneAllocator<'a> { in new() method
71 pub fn new() -> ZoneAllocator<'a> { in new() method
216 pub fn new(total: u64, free: u64) -> Self { in new() method
/DragonOS/kernel/src/process/
H A Dtimer.rs36 pub fn new(timer_func: Box<dyn TimerFunction>, second: u64) -> Self { in new() method
113 pub fn new(pid: Pid) -> Box<AlarmTimerFunc> { in new() method
/DragonOS/kernel/src/libs/
H A Dvolatile.rs75 pub fn new(value: T) -> Self { in new() method
93 pub fn new(value: T) -> Self { in new() method
H A Dcasting.rs69 let new = unsafe { Arc::from_raw(p as *const T) }; in downcast_arc() localVariable
H A Dnotifier.rs23 pub fn new() -> Self { in new() method
115 pub fn new() -> Self { in new() method
154 pub fn new() -> Self { in new() method
191 pub fn new() -> Self { in new() method
H A Dsemaphore.rs24 fn new(counter: i32) -> Result<Self, SystemError> { in new() method
/DragonOS/kernel/crates/klog_types/src/
H A Dlib.rs40 pub fn new( in new() method
135 pub fn new(layout: core::alloc::Layout, vaddr: Option<usize>, paddr: Option<usize>) -> Self { in new() method
172 pub const fn new() -> Self { in new() method
229 pub const fn new(capacity: usize) -> Self { in new() method
/DragonOS/kernel/src/mm/allocator/
H A Dpage_frame.rs22 pub fn new(paddr: PhysAddr) -> Self { in new() method
68 pub fn new(start: PhysPageFrame, end: PhysPageFrame) -> Self { in new() method
97 pub fn new(vaddr: VirtAddr) -> Self { in new() method
149 pub fn new(start: VirtPageFrame, end: VirtPageFrame) -> Self { in new() method
177 pub const fn new(count: usize) -> Self { in new() method
291 pub fn new(used: PageFrameCount, total: PageFrameCount) -> Self { in new() method
/DragonOS/kernel/crates/rbpf/src/
H A Dno_std_error.rs22 pub fn new<S: Into<String>>(kind: ErrorKind, error: S) -> Error { in new() method
/DragonOS/kernel/src/arch/x86_64/include/asm/
H A Dcmpxchg.h80 #define arch_try_cmpxchg(ptr, old_ptr, new) \ argument
/DragonOS/kernel/src/sched/
H A Dcompletion.rs19 pub const fn new() -> Self { in new() method
149 pub const fn new() -> Self { in new() method
/DragonOS/tools/debugging/logmonitor/src/backend/monitor/
H A Dmm.rs33 pub(crate) fn new(shared_data: Arc<Mutex<BackendData>>) -> Arc<Self> { in new() method
146 pub fn new(mm_log_monitor: Weak<MMLogMonitor>, kmem_path: PathBuf) -> Self { in new() method
296 pub fn new(logs: Vec<ObjectWrapper<AllocatorLog>>) -> Self { in new() method
/DragonOS/kernel/src/driver/tty/
H A Dtty_port.rs35 pub fn new() -> Self { in new() method
103 pub fn new() -> Self { in new() method
/DragonOS/kernel/src/driver/base/device/
H A Ddevice_number.rs27 pub const fn new(x: u32) -> Self { in new() method
44 pub const fn new(major: Major, minor: u32) -> Self { in new() method
/DragonOS/kernel/src/exception/
H A Dmod.rs60 pub fn new(flags: usize) -> Self { in new() method
98 pub unsafe fn new(flags: IrqFlags) -> Self { in new() method

12345678910