Home
last modified time | relevance | path

Searched refs:first (Results 1 – 18 of 18) sorted by relevance

/DragonOS/kernel/src/libs/font/
H A Dmod.rs36 if ch < Self::DOUBLE_WIDTH_RANGE.first().unwrap().0 in is_double_width()
42 for (first, last) in Self::DOUBLE_WIDTH_RANGE { in is_double_width()
43 if ch >= *first && ch < *last { in is_double_width()
/DragonOS/kernel/src/namespaces/
H A Duser_namespace.rs35 first: u32, field
108 first: 0, in new()
/DragonOS/kernel/src/libs/
H A Dcpumask.rs35 pub fn first(&self) -> Option<ProcessorId> { in first() method
138 self.index = self.mask.first(); in next()
H A Drbtree.rs1097 let first = self.first_child(); in get_first() localVariable
1098 if first.is_null() { in get_first()
1101 unsafe { Some((&(*first.0).key, &(*first.0).value)) } in get_first()
1115 let first = self.first_child(); in pop_first() localVariable
1116 if first.is_null() { in pop_first()
1119 unsafe { Some(self.delete(first)) } in pop_first()
1133 let first = self.first_child(); in get_first_mut() localVariable
1134 if first.is_null() { in get_first_mut()
1137 unsafe { Some((&(*first.0).key, &mut (*first.0).value)) } in get_first_mut()
/DragonOS/user/apps/test_ebpf/syscall_ebpf/xtask/src/
H A Drun.rs46 let status = Command::new(args.first().expect("No first argument")) in run()
/DragonOS/kernel/src/net/socket/
H A Dinet.rs635 .get_mut::<tcp::Socket>(self.handles.first().unwrap().smoltcp_handle().unwrap()); in read()
697 .get_mut::<tcp::Socket>(self.handles.first().unwrap().smoltcp_handle().unwrap()); in write()
733 .get_mut::<tcp::Socket>(self.handles.first().unwrap().smoltcp_handle().unwrap()); in poll()
748 sockets.get_mut::<tcp::Socket>(self.handles.first().unwrap().smoltcp_handle().unwrap()); in connect()
770 self.handles.first().unwrap().smoltcp_handle().unwrap(), in connect()
974 sockets.get::<tcp::Socket>(self.handles.first().unwrap().smoltcp_handle().unwrap()); in endpoint()
987 sockets.get::<tcp::Socket>(self.handles.first().unwrap().smoltcp_handle().unwrap()); in peer_endpoint()
1002 *self.handles.first().unwrap() in socket_handle()
/DragonOS/kernel/src/ipc/
H A Dsignal_types.rs505 let mut first = true; // 标记变量,记录当前是否已经筛选出了一个元素 in find_and_delete() localVariable
509 if !first { in find_and_delete()
515 first = false; in find_and_delete()
/DragonOS/kernel/src/time/
H A Dtimer.rs260 let (front_jiffies, timer_list_front) = timer_list.first().unwrap().clone(); in run()
350 return Ok(timer_list.first().unwrap().0); in timer_get_first_expire()
/DragonOS/kernel/src/bpf/map/
H A Dqueue.rs75 self.data.first() in peek()
/DragonOS/kernel/crates/unified-init/macros/src/
H A Dlib.rs111 if let syn::GenericArgument::Type(type_arg) = generic_args.args.first().unwrap() in check_function_signature()
/DragonOS/docs/kernel/debug/
H A Ddebug-kernel-with-gdb.md330 list <first>,<last> #显示当前活动源文件的<first>至<last>之间的源代码片段
/DragonOS/docs/kernel/trace/
H A DeBPF.md207 /// Get the next key in the map. If key is None, get the first key.
231 /// Get the first value pointer.
/DragonOS/kernel/src/net/
H A Dnet_core.rs94 let cidr = net_face.inner_iface().lock().ip_addrs().first().cloned(); in dhcp_query()
/DragonOS/kernel/src/driver/irqchip/
H A Driscv_sifive_plic.rs367 mask_val.first() in irq_set_affinity()
371 amask.first() in irq_set_affinity()
/DragonOS/kernel/src/exception/
H A Dhandle.rs373 let action = desc_inner_guard.actions().first().cloned(); in handle()
/DragonOS/kernel/crates/rbpf/
H A DREADME.md108 the end of the packet data area. So the program first loads those pointers from
116 address provided to its first eBPF register will be the address of a metadata
132 address of the packet data in its first register. This is the behavior of
473 The first method consists in using the assembler provided by the crate.
585 This is the author's first try at writing Rust code. He learned a lot in the
672 could be a good idea to test your program with the interpreter first.
/DragonOS/kernel/src/arch/x86_64/driver/apic/
H A Dioapic.rs550 let dest = (cpu.first().ok_or(SystemError::EINVAL)?.data() & 0xff) as u8; in irq_set_affinity()
/DragonOS/kernel/src/driver/block/
H A Dvirtio_blk.rs64 .first() in virtio_blk_0()