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

Function io_uring_prep_cmd_sock

src/include/liburing.h:1584–1598  ·  view source on GitHub ↗

* Prepare commands for sockets */

Source from the content-addressed store, hash-verified

1582 * Prepare commands for sockets
1583 */
1584IOURINGINLINE void io_uring_prep_cmd_sock(struct io_uring_sqe *sqe,
1585 int cmd_op,
1586 int fd,
1587 int level,
1588 int optname,
1589 void *optval,
1590 int optlen)
1591 LIBURING_NOEXCEPT
1592{
1593 io_uring_prep_uring_cmd(sqe, cmd_op, fd);
1594 sqe->optval = (unsigned long) (uintptr_t) optval;
1595 sqe->optname = optname;
1596 sqe->optlen = optlen;
1597 sqe->level = level;
1598}
1599
1600IOURINGINLINE void io_uring_prep_cmd_getsockname(struct io_uring_sqe *sqe,
1601 int fd, struct sockaddr *sockaddr,

Callers 4

mainFunction · 0.85
setup_srvFunction · 0.85
create_sqe_and_submitFunction · 0.85
submit_cmd_sqeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected