/DragonOS-0.1.7/kernel/src/net/ |
D | mod.rs | 80 fn write(&self, buf: &[u8], to: Option<Endpoint>) -> Result<usize, SystemError>; in write() method 230 Protocol::HopByHop => write!(f, "Hop-by-Hop"), in fmt() 231 Protocol::Icmp => write!(f, "ICMP"), in fmt() 232 Protocol::Igmp => write!(f, "IGMP"), in fmt() 233 Protocol::Tcp => write!(f, "TCP"), in fmt() 234 Protocol::Udp => write!(f, "UDP"), in fmt() 235 Protocol::Ipv6Route => write!(f, "IPv6-Route"), in fmt() 236 Protocol::Ipv6Frag => write!(f, "IPv6-Frag"), in fmt() 237 Protocol::Icmpv6 => write!(f, "ICMPv6"), in fmt() 238 Protocol::Ipv6NoNxt => write!(f, "IPv6-NoNxt"), in fmt() [all …]
|
D | socket.rs | 192 fn write(&self, buf: &[u8], to: Option<super::Endpoint>) -> Result<usize, SystemError> { in write() method 373 fn write(&self, buf: &[u8], to: Option<super::Endpoint>) -> Result<usize, SystemError> { in write() method 617 fn write(&self, buf: &[u8], _to: Option<super::Endpoint>) -> Result<usize, SystemError> { in write() method 673 let iface: Arc<dyn NetDriver> = NET_DRIVERS.write().get(&0).unwrap().clone(); in connect() 1035 return self.0.lock().write(&buf[0..len], None); in write_at() 1039 let (read, write, error) = self.0.lock().poll(); in poll() 1044 if write { in poll()
|
D | net_core.rs | 37 let binding = NET_DRIVERS.write(); in dhcp_query()
|
/DragonOS-0.1.7/kernel/src/libs/ |
D | lazy_init.rs | 79 (*self.value.get()).as_mut_ptr().write(value); in init() 139 return write!(f, "Lazy({:?})", value); in fmt() 141 return write!(f, "Lazy(uninitialized)"); in fmt()
|
/DragonOS-0.1.7/kernel/src/driver/virtio/ |
D | transport_pci.rs | 412 Self::InvalidVendorId(vendor_id) => write!( in fmt() 417 Self::MissingCommonConfig => write!( in fmt() 421 Self::MissingNotifyConfig => write!( in fmt() 426 write!( in fmt() 433 write!(f, "No valid `VIRTIO_PCI_CAP_ISR_CFG` capability was found.") in fmt() 435 Self::UnexpectedBarType => write!(f, "Unexpected BAR (expected memory BAR)."), in fmt() 436 Self::BarNotAllocated(bar_index) => write!(f, "Bar {} not allocated.", bar_index), in fmt() 437 Self::BarOffsetOutOfRange => write!(f, "Capability offset greater than BAR length."), in fmt() 438 Self::Misaligned { vaddr, alignment } => write!( in fmt() 443 Self::BarGetVaddrFailed => write!(f, "Get bar virtaddress failed"), in fmt()
|
D | virtio.rs | 29 let mut list = PCI_DEVICE_LINKEDLIST.write(); in virtio_probe()
|
/DragonOS-0.1.7/kernel/src/driver/keyboard/ |
D | ps2_keyboard.rs | 74 result.0.write().self_ref = Arc::downgrade(&result); in new() 82 self.0.write().fs = fs; in set_fs() 131 let guard = self.0.write(); in open() 145 let guard = self.0.write(); in close() 161 let mut inode = self.0.write(); in set_metadata()
|
D | ps2_keyboard.c | 134 .write = ps2_keyboard_write,
|
/DragonOS-0.1.7/user/libs/libc/src/include/export/ |
D | unistd.h | 35 ssize_t write(int fd, void const *buf, size_t count);
|
/DragonOS-0.1.7/kernel/src/driver/pci/ |
D | pci.rs | 65 write!(f, "PciAddr({:#x})", self.0) in fmt() 88 pub fn write(&self) -> RwLockWriteGuard<LinkedList<Box<dyn PciDeviceStructure>>> { in write() method 89 self.list.write() in write() 99 let mut list = self.list.write(); in add() 250 Self::InvalidBarType => write!(f, "Invalid PCI BAR type."), in fmt() 251 Self::CreateMmioError => write!(f, "Error occurred while creating mmio."), in fmt() 252 Self::InvalidBusDeviceFunction => write!(f, "Found invalid BusDeviceFunction."), in fmt() 253 Self::SegmentNotFound => write!(f, "Target segment not found"), in fmt() 254 Self::GetWrongHeader => write!(f, "GetWrongHeader with vendor id 0xffff"), in fmt() 255 Self::UnrecognisedHeaderType => write!(f, "Found device with unrecognised header type"), in fmt() [all …]
|
/DragonOS-0.1.7/user/apps/shell/ |
D | cmd_test.c | 72 write(fd[1], msg, n); // 向管道的写端写入一条消息 in shell_pipe_test()
|
/DragonOS-0.1.7/docs/userland/libc/apis/api-list/ |
D | unistd.md | 17 ``ssize_t write(int fd,void const *buf,size_t count)`` : 写入文件
|
D | fcntl.md | 18 #define O_RDWR 00000002 // Open read/write
|
/DragonOS-0.1.7/docs/kernel/filesystem/vfs/ |
D | design.md | 17 │ write │
|
/DragonOS-0.1.7/user/libs/libc/src/ |
D | stdio.c | 24 write(stream->fd, buf, len); in fprintf()
|
D | unistd.c | 41 ssize_t write(int fd, void const *buf, size_t count) in write() function
|
D | printf.c | 51 write(1, buf, count); in printf()
|
/DragonOS-0.1.7/kernel/src/driver/tty/ |
D | mod.rs | 280 self.state.write().set(TtyCoreState::ECHO_ON, true); in enable_echo() 287 self.state.write().set(TtyCoreState::ECHO_ON, false); in disable_echo()
|
D | tty_device.rs | 106 *self.fs.write() = fs; in set_fs()
|
/DragonOS-0.1.7/kernel/src/exception/ |
D | softirq.rs | 136 let mut table_guard = self.table.write(); in register_softirq() 158 let table_guard = &mut self.table.write(); in unregister_softirq()
|
/DragonOS-0.1.7/docs/kernel/locking/ |
D | rwlock.md | 94 pub fn write(&self) -> RwLockWriteGuard<T> 154 let mut guard = LOCK.write();
|
/DragonOS-0.1.7/kernel/src/filesystem/vfs/ |
D | VFS.h | 188 long (*write)(struct vfs_file_t *file_ptr, char *buf, int64_t count, long *position); member
|
D | file.rs | 149 pub fn write(&mut self, len: usize, buf: &[u8]) -> Result<usize, SystemError> { in write() method
|
/DragonOS-0.1.7/kernel/src/time/ |
D | mod.rs | 126 write!(f, "{}.{:0>3}s", self.secs(), self.millis()) in fmt() 222 write!(f, "{}.{:03}s", self.secs(), self.millis()) in fmt()
|
/DragonOS-0.1.7/kernel/src/driver/net/ |
D | virtio_net.rs | 231 NET_DRIVERS.write().insert(iface.nic_id(), iface.clone()); in virtio_net()
|