MCPcopy Create free account
hub / github.com/axboe/liburing / handle_fd_pass

Function handle_fd_pass

examples/proxy.c:1876–1885  ·  view source on GitHub ↗

* Start of connection, we got our in descriptor. */

Source from the content-addressed store, hash-verified

1874 * Start of connection, we got our in descriptor.
1875 */
1876static int handle_fd_pass(struct io_uring_cqe *cqe)
1877{
1878 struct conn *c = cqe_to_conn(cqe);
1879 int fd = cqe_to_fd(cqe);
1880
1881 vlog("%d: got fd pass %d\n", c->tid, fd);
1882 c->in_fd = fd;
1883 open_socket(c);
1884 return 0;
1885}
1886
1887static int handle_stop(struct io_uring_cqe *cqe)
1888{

Callers 1

handle_cqeFunction · 0.85

Calls 3

cqe_to_connFunction · 0.85
cqe_to_fdFunction · 0.85
open_socketFunction · 0.85

Tested by

no test coverage detected