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

Method writev

source/kernel/kprocess.cpp:1812–1822  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1810}
1811
1812U32 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
1824U32 KProcess::memfd_create(BString name, U32 flags) {
1825 std::shared_ptr<FsMemNode> node = std::make_shared<FsMemNode>(1, 1, name);

Callers

nothing calls this directly

Calls 2

getFileDescriptorMethod · 0.95
canWriteMethod · 0.45

Tested by

no test coverage detected