Home
last modified time | relevance | path

Searched refs:write (Results 1 – 25 of 33) sorted by relevance

12

/DragonOS-0.1.7/kernel/src/net/
Dmod.rs80 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 …]
Dsocket.rs192 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()
Dnet_core.rs37 let binding = NET_DRIVERS.write(); in dhcp_query()
/DragonOS-0.1.7/kernel/src/libs/
Dlazy_init.rs79 (*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/
Dtransport_pci.rs412 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()
Dvirtio.rs29 let mut list = PCI_DEVICE_LINKEDLIST.write(); in virtio_probe()
/DragonOS-0.1.7/kernel/src/driver/keyboard/
Dps2_keyboard.rs74 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()
Dps2_keyboard.c134 .write = ps2_keyboard_write,
/DragonOS-0.1.7/user/libs/libc/src/include/export/
Dunistd.h35 ssize_t write(int fd, void const *buf, size_t count);
/DragonOS-0.1.7/kernel/src/driver/pci/
Dpci.rs65 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/
Dcmd_test.c72 write(fd[1], msg, n); // 向管道的写端写入一条消息 in shell_pipe_test()
/DragonOS-0.1.7/docs/userland/libc/apis/api-list/
Dunistd.md17 ``ssize_t write(int fd,void const *buf,size_t count)`` : 写入文件
Dfcntl.md18 #define O_RDWR 00000002 // Open read/write
/DragonOS-0.1.7/docs/kernel/filesystem/vfs/
Ddesign.md17write
/DragonOS-0.1.7/user/libs/libc/src/
Dstdio.c24 write(stream->fd, buf, len); in fprintf()
Dunistd.c41 ssize_t write(int fd, void const *buf, size_t count) in write() function
Dprintf.c51 write(1, buf, count); in printf()
/DragonOS-0.1.7/kernel/src/driver/tty/
Dmod.rs280 self.state.write().set(TtyCoreState::ECHO_ON, true); in enable_echo()
287 self.state.write().set(TtyCoreState::ECHO_ON, false); in disable_echo()
Dtty_device.rs106 *self.fs.write() = fs; in set_fs()
/DragonOS-0.1.7/kernel/src/exception/
Dsoftirq.rs136 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/
Drwlock.md94 pub fn write(&self) -> RwLockWriteGuard<T>
154 let mut guard = LOCK.write();
/DragonOS-0.1.7/kernel/src/filesystem/vfs/
DVFS.h188 long (*write)(struct vfs_file_t *file_ptr, char *buf, int64_t count, long *position); member
Dfile.rs149 pub fn write(&mut self, len: usize, buf: &[u8]) -> Result<usize, SystemError> { in write() method
/DragonOS-0.1.7/kernel/src/time/
Dmod.rs126 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/
Dvirtio_net.rs231 NET_DRIVERS.write().insert(iface.nic_id(), iface.clone()); in virtio_net()

12