| 2125 | } |
| 2126 | |
| 2127 | U32 KProcess::epollctl(FD epfd, U32 op, FD fd, U32 address) { |
| 2128 | KFileDescriptorPtr epollFD = this->getFileDescriptor(epfd); |
| 2129 | if (fd==epfd || epollFD->kobject->type != KTYPE_EPOLL) { |
| 2130 | return -K_EINVAL; |
| 2131 | } |
| 2132 | std::shared_ptr<KEPoll> p = std::dynamic_pointer_cast<KEPoll>(epollFD->kobject); |
| 2133 | return p->ctl(memory, op, fd, address); |
| 2134 | } |
| 2135 | |
| 2136 | U32 KProcess::epollwait(KThread* thread, FD epfd, U32 events, U32 maxevents, U32 timeout) { |
| 2137 | KFileDescriptorPtr epollFD = this->getFileDescriptor(epfd); |
no test coverage detected