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

Function read

net/basic_socket.cpp:132–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132ssize_t read(int fd, void *buf, size_t count, Timeout timeout) {
133 return DOIO_ONCE(::read(fd, buf, count), wait_for_fd_readable(fd, timeout));
134}
135
136ssize_t readv(int fd, const struct iovec *iov, int iovcnt, Timeout timeout) {
137 if (unlikely(iovcnt <= 0)) {

Callers 15

fire_signalFunction · 0.85
do_recvMethod · 0.85
readMethod · 0.85
readvFunction · 0.85
read_nFunction · 0.85
skip_readMethod · 0.85
readvMethod · 0.85
readvMethod · 0.85
readvMethod · 0.85
write_checksum_workerFunction · 0.85
serve_connectionFunction · 0.85
TESTFunction · 0.85

Calls 1

wait_for_fd_readableFunction · 0.50

Tested by 5

write_checksum_workerFunction · 0.68
serve_connectionFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68