Home
last modified time | relevance | path

Searched refs:None (Results 1 – 25 of 60) sorted by relevance

123

/DragonOS-0.1.8/kernel/src/driver/base/map/
Dmod.rs75 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/
Dprocess.rs237 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/
Dslab.rs48 None => return None, in allocate()
77 return FreeBlockList { len: 0, head: None }; in new_empty()
Dbuddy.rs290 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()
Dpage_frame.rs69 return None; in next()
143 return None; in next()
176 return None; in from_bytes()
/DragonOS-0.1.8/kernel/src/sched/
Drt.rs17 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()
Dcfs.rs18 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/
Dsyscall.rs35 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()
Dsignal.rs164 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/
Drbtree.rs622 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 …]
Drwlock.rs130 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()
Dcasting.rs73 return None; in downcast_arc()
Delf.rs403 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/
Dlib.rs85 None => { in panic()
94 None => { in panic()
/DragonOS-0.1.8/kernel/src/driver/pci/
Dpci.rs30 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/
Dcasting.md26 return None;
63 &emsp;&emsp;如果`arc`的具体类型不是`Arc<T>`,那么`downcast_arc::<T>()`会返回`None`。
/DragonOS-0.1.8/docs/kernel/sched/
Dcfs.md20 1. sched(): 是对于Scheduler trait的sched()实现,是普通进程进行调度时的逻辑处理,该函数会返回接下来要执行的pcb,若没有符合要求的pcb,返回None
Drt.md22 2. sched(): 是对于Scheduler trait的sched()实现,是实时进程进行调度时的逻辑处理,该函数会返回接下来要执行的pcb,若没有符合要求的pcb,返回None
/DragonOS-0.1.8/kernel/src/filesystem/fat/
Dentry.rs255 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/
Dvirtio_net.rs153 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/
Dsocket.rs79 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/
Dsoftirq.rs30 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/
Dtransport_pci.rs107 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/
Dtimekeeping.rs32 static mut __TIMEKEEPER: Option<Timekeeper> = None;
68 clock: None, in new()
167 None => continue, in getnstimeofday()
/DragonOS-0.1.8/kernel/src/mm/
Ducontext.rs130 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()

123