MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / epollctl

Method epollctl

source/kernel/kprocess.cpp:2127–2134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2125}
2126
2127U32 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
2136U32 KProcess::epollwait(KThread* thread, FD epfd, U32 events, U32 maxevents, U32 timeout) {
2137 KFileDescriptorPtr epollFD = this->getFileDescriptor(epfd);

Callers 1

syscall_epoll_ctlFunction · 0.80

Calls 2

getFileDescriptorMethod · 0.95
ctlMethod · 0.80

Tested by

no test coverage detected