/DragonOS-0.1.8/kernel/src/libs/ |
D | int_like.rs | 39 pub const fn from(x: $backing_type) -> Self { 63 Self::new($new_type_name::from(0)) 67 $new_type_name::from(self.container.load(order)) 79 $new_type_name::from(self.container.swap(val.into(), order)) 93 Ok(result) => Ok($new_type_name::from(result)), 94 Err(result) => Err($new_type_name::from(result)), 111 Ok(result) => Ok($new_type_name::from(result)), 112 Err(result) => Err($new_type_name::from(result)),
|
D | kfifo.c | 51 uint32_t kfifo_in(struct kfifo_t *fifo, const void *from, uint32_t size) in kfifo_in() argument 56 if (unlikely(from == NULL)) in kfifo_in() 63 memcpy(fifo->buffer + fifo->in_offset, from, tmp); in kfifo_in() 64 memcpy(fifo->buffer, from + tmp, size - tmp); in kfifo_in() 69 memcpy(fifo->buffer + fifo->in_offset, from, size); in kfifo_in()
|
D | elf.rs | 62 if ElfMachine::from(ehdr.e_machine) != ElfMachine::X86_64 { in probe_x86_64() 69 if ElfType::from(ehdr.e_type) != ElfType::Executable { in probe_x86_64() 488 let elf_type = ElfType::from(ehdr.e_type); in load() 730 fn from(machine: u16) -> Self { in from() method 760 fn from(elf_type: u16) -> Self { in from() method
|
/DragonOS-0.1.8/user/libs/libc/ |
D | build.rs | 12 let out_path = PathBuf::from(String::from("src/include/internal/bindings/")); in main()
|
/DragonOS-0.1.8/kernel/ |
D | build.rs | 12 let out_path = PathBuf::from(String::from("src/include/bindings/")); in main()
|
/DragonOS-0.1.8/kernel/src/exception/ |
D | softirq.rs | 77 fn from(value: u64) -> Self { in from() method 91 fn from(value: SoftirqNumber) -> Self { in from() method 166 cpu_pending(smp_get_processor_id() as usize).set(VecStatus::from(softirq_num), false); in unregister_softirq() 231 cpu_pending(processor_id).insert(VecStatus::from(softirq_num)); in raise_softirq() 240 cpu_pending(smp_get_processor_id() as usize).remove(VecStatus::from(softirq_num)); in clear_softirq_pending() 248 softirq_vectors().raise_softirq(SoftirqNumber::from(softirq_num as u64)); in rs_raise_softirq() 253 softirq_vectors().unregister_softirq(SoftirqNumber::from(softirq_num as u64)); in rs_unregister_softirq() 264 softirq_vectors().clear_softirq_pending(SoftirqNumber::from(softirq_num as u64)); in rs_clear_softirq_pending()
|
/DragonOS-0.1.8/kernel/src/common/ |
D | kfifo.h | 99 uint32_t kfifo_in(struct kfifo_t *fifo, const void *from, uint32_t size); 130 uint32_t __always_inline kfifo_in_locked(struct kfifo_t *fifo, const void *from, uint32_t size, spi… in kfifo_in_locked() argument 133 uint32_t retval = kfifo_in(fifo, from, size); in kfifo_in_locked()
|
/DragonOS-0.1.8/docs/kernel/core_api/ |
D | softirq.md | 151 .register_softirq(SoftirqNumber::from(softirq_num as u64), softirq_example) 155 softirq_vectors().raise_softirq(SoftirqNumber::from(softirq_num as u64)); 158 softirq_vectors().clear_softirq_pending(SoftirqNumber::from(softirq_num as u64)); 161 softirq_vectors().unregister_softirq(SoftirqNumber::from(softirq_num as u64));
|
/DragonOS-0.1.8/kernel/src/arch/x86_64/interrupt/ |
D | ipi.rs | 17 fn from(kind: IpiKind) -> Self { in from() method 39 fn from(target: IpiTarget) -> Self { in from() method 90 let ipi_vec = ArchIpiKind::from(kind) as u8; in send_ipi() 91 let target = ArchIpiTarget::from(target); in send_ipi()
|
/DragonOS-0.1.8/kernel/src/process/ |
D | c_adapter.rs | 52 from: &'static process_control_block, in process_copy_files() 54 let r = current_pcb().copy_files(clone_flags, from); in process_copy_files()
|
/DragonOS-0.1.8/kernel/src/driver/base/device/ |
D | bus.rs | 34 fn from(state: u32) -> Self { in from() method 45 fn from(state: DeviceState) -> Self { in from() method 56 fn from(state: BusState) -> Self { in from() method
|
D | mod.rs | 36 fn from(dev_t: usize) -> Self { in from() method 149 fn from(state: u32) -> Self { in from() method 160 fn from(state: DeviceState) -> Self { in from() method
|
/DragonOS-0.1.8/kernel/src/filesystem/vfs/ |
D | mod.rs | 386 (ROOT_INODE().clone(), String::from(rest)) in lookup_follow_symlink() 389 (self.find(".")?, String::from(path)) in lookup_follow_symlink() 405 name = String::from(&rest_path[0..pos]); in lookup_follow_symlink() 407 rest_path = String::from(&rest_path[pos + 1..]); in lookup_follow_symlink() 429 let link_path = String::from( in lookup_follow_symlink()
|
/DragonOS-0.1.8/docs/kernel/ipc/ |
D | signal.md | 47 │ Return from syscall...│ │
|
/DragonOS-0.1.8/kernel/src/net/ |
D | mod.rs | 246 fn from(value: smoltcp::wire::IpProtocol) -> Self { in from() method 248 Protocol::from(x) in from() 253 fn from(value: u8) -> Self { in from() method
|
D | syscall.rs | 44 Protocol::from(protocol as u8), in socket() 252 let sockaddr_in = SockAddr::from(endpoint); in recvfrom() 286 let sockaddr_in = SockAddr::from(endpoint); in recvmsg() 348 let sockaddr_in = SockAddr::from(remote_endpoint); in accept() 381 let sockaddr_in = SockAddr::from(endpoint); in getsockname() 411 let sockaddr_in = SockAddr::from(endpoint); in getpeername() 497 let ip: wire::IpAddress = wire::IpAddress::from(wire::Ipv4Address::from_bytes( in to_endpoint() 573 fn from(value: Endpoint) -> Self { in from() method
|
/DragonOS-0.1.8/kernel/src/filesystem/ramfs/ |
D | mod.rs | 277 inode.children.insert(String::from(name), result.clone()); in create_with_data() 306 .insert(String::from(name), other_locked.self_ref.upgrade().unwrap()); in link() 403 return Ok(String::from(".")); in get_entry_name() 406 return Ok(String::from("..")); in get_entry_name() 434 keys.push(String::from(".")); in list() 435 keys.push(String::from("..")); in list()
|
/DragonOS-0.1.8/kernel/src/time/ |
D | mod.rs | 337 fn from(other: ::core::time::Duration) -> Duration { in from() method 343 fn from(val: Duration) -> Self { in from() method 350 fn from(val: smoltcp::time::Instant) -> Self { in from() method 363 fn from(val: smoltcp::time::Duration) -> Self { in from() method
|
/DragonOS-0.1.8/kernel/src/arch/x86_64/ |
D | syscall.rs | 165 let path = String::from("/bin/shell.elf"); in rs_exec_init_process() 166 let argv = vec![String::from("/bin/shell.elf")]; in rs_exec_init_process() 167 let envp = vec![String::from("PATH=/bin")]; in rs_exec_init_process()
|
/DragonOS-0.1.8/kernel/src/filesystem/sysfs/ |
D | mod.rs | 216 return Ok(String::from(".")); in get_entry_name() 219 return Ok(String::from("..")); in get_entry_name() 276 keys.push(String::from(".")); in list() 277 keys.push(String::from("..")); in list() 330 guard.children.insert(String::from(_name), result.clone()); in do_create_with_data()
|
/DragonOS-0.1.8/docs/ |
D | make.bat | 23 echo.If you don't have Sphinx installed, grab it from
|
/DragonOS-0.1.8/kernel/src/filesystem/procfs/ |
D | mod.rs | 43 fn from(value: u8) -> Self { in from() method 523 inode.children.insert(String::from(name), result.clone()); in create_with_data() 552 .insert(String::from(name), other_locked.self_ref.upgrade().unwrap()); in link() 618 return Ok(String::from(".")); in get_entry_name() 621 return Ok(String::from("..")); in get_entry_name() 649 keys.push(String::from(".")); in list() 650 keys.push(String::from("..")); in list()
|
/DragonOS-0.1.8/kernel/src/ipc/ |
D | syscall.rs | 45 let sig = SignalNumber::from(sig); in kill() 152 let sig = SignalNumber::from(sig as i32); in sigaction()
|
/DragonOS-0.1.8/kernel/src/filesystem/devfs/ |
D | mod.rs | 333 guard.children.insert(String::from(_name), result.clone()); in do_create_with_data() 401 return Ok(String::from(".")); in get_entry_name() 404 return Ok(String::from("..")); in get_entry_name() 436 keys.push(String::from(".")); in list() 437 keys.push(String::from("..")); in list()
|
/DragonOS-0.1.8/kernel/src/driver/base/char/ |
D | mod.rs | 163 from: DeviceNumber, in register_chardev_region() 167 Self::__register_chardev_region(from, count, name) in register_chardev_region()
|