Home
last modified time | relevance | path

Searched refs:expect (Results 1 – 25 of 38) sorted by relevance

12

/DragonOS-0.1.8/kernel/src/filesystem/vfs/
Dcore.rs61 .expect("Failed to create /proc"); in vfs_init()
64 .expect("Failed to create /dev"); in vfs_init()
67 .expect("Failed to create /sys"); in vfs_init()
75 .expect("Cannot find /proc") in vfs_init()
77 .expect("Failed to mount procfs."); in vfs_init()
85 .expect("Cannot find /dev") in vfs_init()
87 .expect("Failed to mount devfs"); in vfs_init()
95 .expect("Cannot find /sys") in vfs_init()
97 .expect("Failed to mount sysfs"); in vfs_init()
100 let root_inode = ROOT_INODE().list().expect("VFS init failed"); in vfs_init()
[all …]
/DragonOS-0.1.8/user/libs/libc/
Dbuild.rs39 .expect("Unable to generate bindings"); in main()
43 .expect("Couldn't write bindings!"); in main()
/DragonOS-0.1.8/kernel/
Dbuild.rs41 .expect("Unable to generate bindings"); in main()
45 .expect("Couldn't write bindings!"); in main()
/DragonOS-0.1.8/kernel/src/driver/virtio/
Dvirtio_impl.rs30 allocate_page_frames(page_num).expect("VirtIO Impl: alloc page failed"); in dma_alloc()
41 .expect("VirtIO Impl: remap failed"); in dma_alloc()
67 .expect("VirtIO Impl: remap failed"); in dma_dealloc()
/DragonOS-0.1.8/kernel/src/process/
Dprocess.rs313 .expect("Not a socket inode"); in get_socket()
358 .expect("Init stdio: can't find tty0"); in init_stdio()
360 File::new(tty_inode.clone(), FileMode::O_RDONLY).expect("Init stdio: can't create stdin"); in init_stdio()
362 File::new(tty_inode.clone(), FileMode::O_WRONLY).expect("Init stdio: can't create stdout"); in init_stdio()
364 .expect("Init stdio: can't create stderr"); in init_stdio()
Dmod.rs31 AddressSpace::new(true).expect("Failed to create address space for INIT process."), in process_init()
Dsyscall.rs45 SystemError::from_posix_errno((ret as isize) as i32).expect("wait4: Invalid errno") in wait4()
Dexec.rs232 self.push_str(ustack, s.as_str()).expect("push_str failed"); in push_at()
242 self.push_str(ustack, s.as_str()).expect("push_str failed"); in push_at()
Dfork.rs154 .expect("copy_mm: Failed to get address space of current process."); in copy_mm()
/DragonOS-0.1.8/kernel/src/driver/video/
Dmod.rs59 .expect("register_softirq_video run failed"); in register_softirq_video()
/DragonOS-0.1.8/docs/kernel/locking/
Drwlock.md199 r1.join().expect("r1");
200 t1.join().expect("t1");
201 g1.join().expect("g1");
202 r2.join().expect("r2");
/DragonOS-0.1.8/kernel/src/arch/x86_64/
Dsyscall.rs198 let address_space = AddressSpace::new(true).expect("Failed to create new address space"); in tmp_rs_execve()
232 .expect("No user stack found"), in tmp_rs_execve()
234 .expect("Failed to push proc_init_info to user stack") in tmp_rs_execve()
/DragonOS-0.1.8/kernel/src/mm/
Ducontext.rs69 .expect("Current process has no address space"); in current()
186 .expect("VMA page not mapped") in try_clone()
190 .expect("Phys2Virt: vaddr overflow.") in try_clone()
199 .expect("VMA page not mapped") in try_clone()
203 .expect("Phys2Virt: vaddr overflow.") in try_clone()
436 let (before, r, after) = r.extract(intersection).expect("Failed to extract VMA"); in mprotect()
836 .expect("Failed to remap, beacuse of some page is not mapped") in remap()
851 .expect("Failed to unmap, beacuse of some page is not mapped"); in unmap()
1001 .expect("Failed to remap, beacuse of some page is not mapped") in remap()
1048 .expect("Failed to map phys, may be OOM error"); in physmap()
[all …]
/DragonOS-0.1.8/kernel/src/arch/x86_64/mm/
Dmod.rs150 Self::init_memory_area_from_multiboot2().expect("init memory area failed"); in init()
349 .expect("Failed to create page mapper"); in allocator_init()
360 .expect("Failed to empty page table entry"); in allocator_init()
374 .expect("Failed to map frame"); in allocator_init()
601 .expect("Failed to map frame"); in remap_at_low_address()
617 .expect("Failed to unmap frame"); in unmap_at_low_address()
/DragonOS-0.1.8/kernel/src/driver/net/
Dvirtio_net.rs195 driver_net.send(tx_buf).expect("virtio_net send failed"); in consume()
212 .expect("virtio_net recv failed"); in consume()
269 addrs.push(ip_addrs[0]).expect("Push ipCidr failed: full"); in update_ip_addrs()
/DragonOS-0.1.8/kernel/src/driver/keyboard/
Dps2_keyboard.rs25 .expect("Initializing PS2_KEYBOARD_FSM: Cannot found TTY0!")
89 .expect("Failed to register ps/2 keyboard"); in ps2_keyboard_register()
/DragonOS-0.1.8/kernel/src/filesystem/devfs/
Dmod.rs71 .expect("DevFS: Failed to create /dev/char"); in new()
74 .expect("DevFS: Failed to create /dev/block"); in new()
88 .expect("DevFS: Failed to register /dev/null"); in register_bultinin_device()
91 .expect("DevFS: Failed to register /dev/zero"); in register_bultinin_device()
/DragonOS-0.1.8/docs/kernel/core_api/
Dsoftirq.md152 .expect("failed to register SoftirqExample");
/DragonOS-0.1.8/kernel/src/time/
Dmod.rs266 .expect("overflow when subtracting durations"), in sub()
276 .expect("overflow when subtracting durations"); in sub_assign()
Dclocksource.rs278 .expect("register: failed to enqueue watchdog list"); in register()
487 .expect("clocksource_dequeue_watchdog: failed to update clocksource data"); in clocksource_dequeue_watchdog()
536 .expect("clocksource_change_rating:updata clocksource failed"); in clocksource_change_rating()
/DragonOS-0.1.8/kernel/src/driver/uart/
Duart.rs459 .expect("uart device register error"); in uart_init()
462 .expect("uart driver register error"); in uart_init()
/DragonOS-0.1.8/kernel/src/sched/
Drt.rs174 self.pick_next_task_rt(cpu_id).expect("No RT process found"); in sched()
/DragonOS-0.1.8/kernel/src/filesystem/sysfs/
Dmod.rs140 crate::driver::base::platform::platform_bus_init().expect("platform bus init failed"); in new()
142 crate::driver::uart::uart::uart_init().expect("initilize uart error"); in new()
/DragonOS-0.1.8/kernel/src/driver/base/char/
Dmod.rs211 major = Self::find_dynamic_major().expect("Find synamic major error.\n"); in __register_chardev_region()
/DragonOS-0.1.8/kernel/src/exception/
Dsoftirq.rs35 softirq_init().expect("softirq_init failed"); in rs_softirq_init()

12