MCPcopy Create free account
hub / github.com/ceph/ceph / recv_fd

Method recv_fd

src/common/buffer.cc:1842–1851  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1840}
1841
1842ssize_t buffer::list::recv_fd(int fd, size_t len)
1843{
1844 auto bp = ptr_node::create(buffer::create(len));
1845 ssize_t ret = safe_recv(fd, (void*)bp->c_str(), len);
1846 if (ret >= 0) {
1847 bp->set_length(ret);
1848 push_back(std::move(bp));
1849 }
1850 return ret;
1851}
1852
1853int buffer::list::write_file(const char *fn, int mode)
1854{

Callers

nothing calls this directly

Calls 5

safe_recvFunction · 0.85
set_lengthMethod · 0.80
createFunction · 0.70
push_backFunction · 0.50
c_strMethod · 0.45

Tested by

no test coverage detected