Home
last modified time | relevance | path

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

12

/DragonOS-0.1.8/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.rs314 fn write(&self, buf: &[u8], to: Option<super::Endpoint>) -> Result<usize, SystemError> { in write() method
507 fn write(&self, buf: &[u8], to: Option<super::Endpoint>) -> Result<usize, SystemError> { in write() method
760 fn write(&self, buf: &[u8], _to: Option<super::Endpoint>) -> Result<usize, SystemError> { in write() method
816 let iface: Arc<dyn NetDriver> = NET_DRIVERS.write().get(&0).unwrap().clone(); in connect()
1173 return self.0.lock().write(&buf[0..len], None); in write_at()
1177 let (read, write, error) = self.0.lock().poll(); in poll()
1182 if write { in poll()
/DragonOS-0.1.8/kernel/src/mm/
Dsyscall.rs73 let mut address_space = address_space.write(); in brk()
95 let mut address_space = address_space.write(); in sbrk()
150 let start_page = current_address_space.write().map_anonymous( in mmap()
186 .write() in munmap()
221 .write() in mprotect()
Dmod.rs119 write!(f, "PhysAddr({:#x})", self.0) in fmt()
307 write!(f, "VirtAddr({:#x})", self.0) in fmt()
399 unsafe fn write<T>(address: VirtAddr, value: T) { in write() method
400 ptr::write(address.data() as *mut T, value); in write()
/DragonOS-0.1.8/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()
Dnotifier.rs145 let mut notifier_chain_guard = self.0.write(); in register()
153 let mut notifier_chain_guard = self.0.write(); in register_unique_prio()
158 let mut notifier_chain_guard = self.0.write(); in unregister()
Dalign.rs64 return write!( in fmt()
/DragonOS-0.1.8/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.8/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.8/kernel/src/mm/allocator/
Dbuddy.rs141 A::write( in new()
166 A::write( in new()
183 A::write( in new()
215 A::write( in new()
257 unsafe { A::write(virt_addr, page_list) }; in write_page()
319 A::write( in pop_front()
548 unsafe { A::write(Self::entry_virt_addr(paddr, page_list.entry_num), base) } in buddy_free()
583 A::write(buddy_entry_virt_addr, entry); in buddy_free()
587 A::write( in buddy_free()
608 A::write(buddy_entry_virt_addr, last_entry); in buddy_free()
[all …]
/DragonOS-0.1.8/kernel/src/driver/pci/
Dpci.rs66 write!(f, "PciAddr({:#x})", self.0) in fmt()
89 pub fn write(&self) -> RwLockWriteGuard<LinkedList<Box<dyn PciDeviceStructure>>> { in write() method
90 self.list.write() in write()
100 let mut list = self.list.write(); in add()
255 Self::InvalidBarType => write!(f, "Invalid PCI BAR type."), in fmt()
256 Self::CreateMmioError => write!(f, "Error occurred while creating mmio."), in fmt()
257 Self::InvalidBusDeviceFunction => write!(f, "Found invalid BusDeviceFunction."), in fmt()
258 Self::SegmentNotFound => write!(f, "Target segment not found"), in fmt()
259 Self::McfgTableNotFound => write!(f, "ACPI MCFG Table not found"), in fmt()
260 Self::GetWrongHeader => write!(f, "GetWrongHeader with vendor id 0xffff"), in fmt()
[all …]
/DragonOS-0.1.8/user/libs/libc/src/include/export/
Dunistd.h35 ssize_t write(int fd, void const *buf, size_t count);
/DragonOS-0.1.8/user/apps/shell/
Dcmd_test.c72 write(fd[1], msg, n); // 向管道的写端写入一条消息 in shell_pipe_test()
/DragonOS-0.1.8/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.8/user/apps/http_server/
Dmain.c32 return write(sockfd, response, strlen(response)); in send_response()
103 int wsize = write(sockfd, p, min(readSize, MAX_RESPONSE_SIZE)); in send_file()
/DragonOS-0.1.8/docs/kernel/filesystem/vfs/
Ddesign.md17write
/DragonOS-0.1.8/kernel/src/time/
Dtimekeeping.rs104 let mut timekeeper = self.0.write(); in timekeeper_setup_internals()
217 let mut timekeeper = timekeeper().0.write(); in timekeeping_init()
290 let mut timekeeper = timekeeper().0.write(); in update_wall_time()
/DragonOS-0.1.8/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
/DragonOS-0.1.8/kernel/src/driver/tty/
Dmod.rs292 self.state.write().set(TtyCoreState::ECHO_ON, true); in enable_echo()
299 self.state.write().set(TtyCoreState::ECHO_ON, false); in disable_echo()
/DragonOS-0.1.8/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.8/docs/kernel/locking/
Drwlock.md94 pub fn write(&self) -> RwLockWriteGuard<T>
154 let mut guard = LOCK.write();

12