| 1810 | } |
| 1811 | |
| 1812 | U32 KProcess::writev(KThread* thread, FD handle, U32 iov, S32 iovcnt) { |
| 1813 | KFileDescriptorPtr fd = this->getFileDescriptor(handle); |
| 1814 | |
| 1815 | if (fd==nullptr) { |
| 1816 | return -K_EBADF; |
| 1817 | } |
| 1818 | if (!fd->canWrite()) { |
| 1819 | return -K_EINVAL; |
| 1820 | } |
| 1821 | return fd->kobject->writev(thread, iov, iovcnt); |
| 1822 | } |
| 1823 | |
| 1824 | U32 KProcess::memfd_create(BString name, U32 flags) { |
| 1825 | std::shared_ptr<FsMemNode> node = std::make_shared<FsMemNode>(1, 1, name); |
nothing calls this directly
no test coverage detected