/DragonOS-0.1.8/kernel/src/driver/base/map/ |
D | mod.rs | 75 None => {} in kobj_unmap() 92 None => { in kobj_lookup() 93 return None; in kobj_lookup() 97 return None; in kobj_lookup()
|
/DragonOS-0.1.8/kernel/src/process/ |
D | process.rs | 237 return None; in get_file_mut_by_fd() 251 return None; in get_file_ref_by_fd() 276 r.fds[fd as usize] = None; in drop_fd() 308 return None; in get_socket() 341 return None; in address_space() 369 assert_eq!(current_pcb().alloc_fd(stdin, None).unwrap(), 0); in init_stdio() 370 assert_eq!(current_pcb().alloc_fd(stdout, None).unwrap(), 1); in init_stdio() 371 assert_eq!(current_pcb().alloc_fd(stderr, None).unwrap(), 2); in init_stdio()
|
/DragonOS-0.1.8/kernel/src/mm/allocator/ |
D | slab.rs | 48 None => return None, in allocate() 77 return FreeBlockList { len: 0, head: None }; in new_empty()
|
D | buddy.rs | 290 return None; in pop_front() 358 return None; in pop_front() 369 let mut x: Option<PhysAddr> = None; in pop_front() 395 return None; in pop_front() 416 return None; in buddy_alloc() 460 let mut buddy_entry_virt_vaddr = None; in buddy_free() 461 let mut buddy_entry_page_list_paddr = None; in buddy_free() 529 None in buddy_free()
|
D | page_frame.rs | 69 return None; in next() 143 return None; in next() 176 return None; in from_bytes()
|
/DragonOS-0.1.8/kernel/src/sched/ |
D | rt.rs | 17 pub static mut RT_SCHEDULER_PTR: Option<Box<SchedulerRT>> = None; 75 res = None; in dequeue() 144 None in pick_next_task_rt() 211 return None; in sched()
|
D | cfs.rs | 18 pub static mut CFS_SCHEDULER_PTR: Option<Box<SchedulerCFS>> = None; 98 return None; in min_vruntime() 229 return None; in sched()
|
/DragonOS-0.1.8/kernel/src/ipc/ |
D | syscall.rs | 35 let read_fd = current_pcb().alloc_fd(read_file, None)?; in pipe() 36 let write_fd = current_pcb().alloc_fd(write_file, None)?; in pipe() 161 None in sigaction() 166 None in sigaction()
|
D | signal.rs | 164 return None; in lock_process_sighand() 242 None => { in __send_signal_locked() 278 let mut _target: Option<&mut process_control_block> = None; in complete_signal() 455 return (sig_number, None, None); in get_signal_to_deliver() 507 info = None; in dequeue_signal() 774 ka._u._sa_handler = None; in flush_signal_handlers() 778 ka.sa_restorer = None; in flush_signal_handlers() 812 None in do_sigaction() 823 None in do_sigaction()
|
/DragonOS-0.1.8/kernel/src/libs/ |
D | rbtree.rs | 622 return None; in next() 626 return None; in next() 650 return None; in next_back() 654 return None; in next_back() 705 return None; in next() 709 return None; in next() 728 return None; in next_back() 732 return None; in next_back() 781 return None; in next() 785 return None; in next() [all …]
|
D | rwlock.rs | 130 return None; //获取失败 in inner_try_read() 139 return None; in inner_try_read() 155 None => spin_loop(), in read() 203 return None; in inner_try_write() 214 None => spin_loop(), in write() 241 return None; in inner_try_upgradeable_read() 252 None => spin_loop(), in upgradeable_read()
|
D | casting.rs | 73 return None; in downcast_arc()
|
D | elf.rs | 403 return Ok(None); in parse_segments() 511 let mut start_code: Option<VirtAddr> = None; in load() 512 let mut end_code: Option<VirtAddr> = None; in load() 513 let mut start_data: Option<VirtAddr> = None; in load() 514 let mut end_data: Option<VirtAddr> = None; in load() 523 let mut phdr_vaddr: Option<VirtAddr> = None; in load() 585 SystemError::EFAULT => ExecError::BadAddress(None), in load() 676 None in load()
|
/DragonOS-0.1.8/kernel/src/ |
D | lib.rs | 85 None => { in panic() 94 None => { in panic()
|
/DragonOS-0.1.8/kernel/src/driver/pci/ |
D | pci.rs | 30 None 278 None in as_standard_device() 283 None in as_pci_to_pci_bridge_device() 288 None in as_pci_to_carbus_bridge_device() 296 None in as_standard_device_mut() 301 None in as_pci_to_pci_bridge_device_mut() 308 None in as_pci_to_carbus_bridge_device_mut() 312 None in capabilities() 340 None in bar_ioremap() 346 None in bar() [all …]
|
/DragonOS-0.1.8/docs/kernel/core_api/ |
D | casting.md | 26 return None; 63   如果`arc`的具体类型不是`Arc<T>`,那么`downcast_arc::<T>()`会返回`None`。
|
/DragonOS-0.1.8/docs/kernel/sched/ |
D | cfs.md | 20 1. sched(): 是对于Scheduler trait的sched()实现,是普通进程进行调度时的逻辑处理,该函数会返回接下来要执行的pcb,若没有符合要求的pcb,返回None
|
D | rt.md | 22 2. sched(): 是对于Scheduler trait的sched()实现,是实时进程进行调度时的逻辑处理,该函数会返回接下来要执行的pcb,若没有符合要求的pcb,返回None
|
/DragonOS-0.1.8/kernel/src/filesystem/fat/ |
D | entry.rs | 255 self.first_cluster = fs.allocate_cluster(None)?; in ensure_len() 424 let mut first_free: Option<(Cluster, u64)> = None; in find_free_entries() 441 return Ok(None); in find_free_entries() 542 let f: FATFile = self.find_entry(name, Some(false), None, fs)?.to_file()?; in open_file() 548 let d: FATDir = self.find_entry(name, Some(true), None, fs)?.to_dir()?; in open_dir() 578 None, in create_file() 616 let first_cluster: Cluster = fs.allocate_cluster(None)?; in create_dir() 744 None => return Err(SystemError::ENOSPC), 747 FATDirEntryOffsetIter::new(fs.clone(), start_loc, num_entries, None).collect(); 797 let e: FATDirEntry = self.find_entry(name, None, None, fs.clone())?; in remove() [all …]
|
/DragonOS-0.1.8/kernel/src/driver/net/ |
D | virtio_net.rs | 153 VirtioNetToken::new(self.clone(), None), in receive() 155 Err(virtio_drivers::Error::NotReady) => None, in receive() 164 return Some(VirtioNetToken::new(self.clone(), None)); in transmit() 167 return None; in transmit() 268 if let None = dest { in update_ip_addrs()
|
/DragonOS-0.1.8/kernel/src/net/ |
D | socket.rs | 79 if let None = listen_table_guard.get(&port) { in get_ephemeral_port() 105 None => listen_table_guard.insert(port, handle), in get_port() 304 return (Err(SystemError::EAGAIN_OR_EWOULDBLOCK), Endpoint::Ip(None)); in read() 453 remote_endpoint: None, in new() 611 return None; in endpoint() 675 local_endpoint: None, in new() 720 return (Err(SystemError::ENOTCONN), Endpoint::Ip(None)); in read() 731 return (Err(SystemError::ENOTCONN), Endpoint::Ip(None)); in read() 744 return (Err(SystemError::ENOTCONN), Endpoint::Ip(None)); in read() 747 return (Err(SystemError::ENOTCONN), Endpoint::Ip(None)); in read() [all …]
|
/DragonOS-0.1.8/kernel/src/exception/ |
D | softirq.rs | 30 static mut __CPU_PENDING: Option<Box<[VecStatus; MAX_CPU_NUM as usize]>> = None; 110 data[i as usize] = MaybeUninit::new(None); in new() 160 table_guard[softirq_num as usize] = None; in unregister_softirq()
|
/DragonOS-0.1.8/kernel/src/driver/virtio/ |
D | transport_pci.rs | 107 let mut common_cfg: Option<VirtioCapabilityInfo> = None; in new() 108 let mut notify_cfg: Option<VirtioCapabilityInfo> = None; in new() 110 let mut isr_cfg = None; in new() 111 let mut device_cfg = None; in new() 181 None in new()
|
/DragonOS-0.1.8/kernel/src/time/ |
D | timekeeping.rs | 32 static mut __TIMEKEEPER: Option<Timekeeper> = None; 68 clock: None, in new() 167 None => continue, in getnstimeofday()
|
/DragonOS-0.1.8/kernel/src/mm/ |
D | ucontext.rs | 130 user_stack: None, in new() 253 None in map_anonymous() 322 None => self in mmap() 473 let stack = UserStack::new(self, None, size)?; in new_user_stack() 614 return None; in contains() 893 return None; in extract() 899 return None; in extract() 904 return Some((None, guard.self_ref.upgrade().unwrap(), None)); in extract() 1066 user_address_space: None, in physmap() 1114 user_address_space: None, in zeroed()
|