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

Function zerocopy_confirm

net/basic_socket.cpp:329–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

327}
328
329int zerocopy_confirm(int fd, uint32_t num_calls, Timeout timeout) {
330 uint32_t counter = 0;
331 do {
332 auto ret = DOIO_ONCE(recv_errqueue(fd, counter),
333 wait_for_fd_error(fd, timeout));
334 if (ret < 0) return ret;
335 } while (is_counter_less_than(counter, num_calls));
336 return 0;
337}
338#endif // __linux__
339
340} // namespace net

Callers 1

do_sendmsgMethod · 0.85

Calls 3

recv_errqueueFunction · 0.85
is_counter_less_thanFunction · 0.85
wait_for_fd_errorFunction · 0.50

Tested by

no test coverage detected