Home
last modified time | relevance | path

Searched refs:epitem (Results 1 – 8 of 8) sorted by relevance

/DragonOS/kernel/src/net/event_poll/
H A Dmod.rs362 let epitem = Arc::new(EPollItem::new( in do_epoll_ctl() localVariable
368 Self::ep_insert(&mut epoll_guard, dst_file, epitem)?; in do_epoll_ctl()
533 while let Some(epitem) = ep_guard.ready_list.pop_front() { in ep_send_events()
535 push_back.push(epitem); in ep_send_events()
538 let ep_events = EPollEventType::from_bits_truncate(epitem.event.read().events); in ep_send_events()
541 let revents = epitem.ep_item_poll(); in ep_send_events()
549 data: epitem.event.read().data, in ep_send_events()
578 let mut event_writer = epitem.event.write(); in ep_send_events()
582 push_back.push(epitem); in ep_send_events()
604 epitem: Arc<EPollItem>, in ep_insert()
[all …]
/DragonOS/kernel/src/net/socket/
H A Dmod.rs245 fn add_epoll(&mut self, epitem: Arc<EPollItem>) -> Result<(), SystemError> { in add_epoll()
247 posix_item.add_epoll(epitem); in add_epoll()
261 for epitem in posix_item.epitems.lock_irqsave().iter() { in clear_epoll()
262 let epoll = epitem.epoll(); in clear_epoll()
265 EventPoll::ep_remove(&mut epoll.lock_irqsave(), epitem.fd(), None)?; in clear_epoll()
429 pub fn add_epoll(&self, epitem: Arc<EPollItem>) { in add_epoll()
430 self.epitems.lock_irqsave().push_back(epitem) in add_epoll()
/DragonOS/kernel/src/filesystem/
H A Deventfd.rs232 let epitem = arg in kernel_ioctl() localVariable
236 self.epitems.lock().push_back(epitem); in kernel_ioctl()
/DragonOS/kernel/src/filesystem/vfs/
H A Dfile.rs581 pub fn add_epoll(&self, epitem: Arc<EPollItem>) -> Result<(), SystemError> { in add_epoll()
587 return socket.add_epoll(epitem); in add_epoll()
591 return inode.inner().lock().add_epoll(epitem); in add_epoll()
594 let r = self.inode.kernel_ioctl(epitem, &self.private_data.lock()); in add_epoll()
/DragonOS/kernel/src/perf/
H A Dmod.rs184 let epitem = arg in kernel_ioctl() localVariable
188 self.epitems.lock().push_back(epitem); in kernel_ioctl()
/DragonOS/kernel/src/driver/tty/
H A Dtty_device.rs320 let epitem = arg in kernel_ioctl() localVariable
326 &epitem as *const Arc<EPollItem>, in kernel_ioctl()
339 core.add_epitem(epitem.clone()); in kernel_ioctl()
H A Dtty_core.rs489 pub fn add_epitem(&self, epitem: Arc<EPollItem>) { in add_epitem()
490 self.epitems.lock().push_back(epitem) in add_epitem()
/DragonOS/kernel/src/ipc/
H A Dpipe.rs102 pub fn add_epoll(&mut self, epitem: Arc<EPollItem>) -> Result<(), SystemError> { in add_epoll()
103 self.epitems.lock().push_back(epitem); in add_epoll()