MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / do_sendfile

Method do_sendfile

net/kernel_socket.cpp:938–942  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

936 }
937
938 ssize_t do_sendfile(int in_fd, off_t offset, size_t count) {
939 auto timeout = m_timeout;
940 return etdoio(LAMBDA(::sendfile(this->fd, in_fd, &offset, count)),
941 LAMBDA_TIMEOUT(wait_for_writable(timeout)));
942 }
943};
944
945class ETKernelSocketClient : public KernelSocketClient {

Callers

nothing calls this directly

Calls 2

etdoioFunction · 0.85
sendfileFunction · 0.85

Tested by

no test coverage detected