/
githubmirror
/
liburing
Обзор
Документация
Войти
/
githubmirror
/
liburing
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
man/io_uring_prep_bind.3
54 строки
1 KB
Darin Morrison
liburing.h: Add const-qualifier for some preps
25 сен 2025, 20:33
25 сен 2025, 20:33
a0046b0
Код
Авторство
О чём код?
.\" Copyright (C) 2024 SUSE LLC .\" .\" SPDX-License-Identifier: LGPL-2.0-or-later .\" .TH io_uring_prep_bind 3 "Jun 3, 2024" "liburing-2.7" "liburing Manual" .SH NAME io_uring_prep_bind \- prepare a bind request .SH SYNOPSIS .nf .B #include <sys/socket.h> .B #include <liburing.h> .PP .BI "void io_uring_prep_bind(struct io_uring_sqe *" sqe "," .BI " int " sockfd "," .BI " const struct sockaddr *" addr "," .BI " socklen_t " addrlen ");" .fi .SH DESCRIPTION The .BR io_uring_prep_bind (3) function prepares a bind request. The submission queue entry .I sqe is setup to assign the network address at .IR addr , of length .IR addrlen , to the socket descriptor .IR sockfd. This function prepares an async .BR bind (2) request. See that man page for details. .SH RETURN VALUE None .SH ERRORS The CQE .I res field will contain the result of the operation. See the related man page for details on possible values. Note that where synchronous system calls will return .B -1 on failure and set .I errno to the actual error value, io_uring never uses .IR errno . Instead it returns the negated .I errno directly in the CQE .I res field. .SH SEE ALSO .BR io_uring_get_sqe (3), .BR io_uring_submit (3), .BR bind (2)