Movatterモバイル変換


[0]ホーム

URL:


man7.org > Linux >man-pages

Linux/UNIX system programming training


io_uring_recvmsg_payload_length(3) — Linux manual page

NAME |SYNOPSIS |DESCRIPTION |SEE ALSO |COLOPHON

io_uring_recvmsg_out(3)      liburing Manualio_uring_recvmsg_out(3)

NAME        top

       io_uring_recvmsg_out - access data from multishot recvmsg

SYNOPSIS        top

#include <liburing.h>struct io_uring_recvmsg_out *io_uring_recvmsg_validate(void *buf,intbuf_len,struct msghdr *msgh);void *io_uring_recvmsg_name(struct io_uring_recvmsg_out *o);struct cmsghdr *io_uring_recvmsg_cmsg_firsthdr(struct io_uring_recvmsg_out *o,struct msghdr *msgh);struct cmsghdr *io_uring_recvmsg_cmsg_nexthdr(struct io_uring_recvmsg_out *o,struct msghdr *msgh,struct cmsghdr *cmsg);void *io_uring_recvmsg_payload(struct io_uring_recvmsg_out *o,struct msghdr *msgh);unsigned int io_uring_recvmsg_payload_length(struct io_uring_recvmsg_out *o,intbuf_len,struct msghdr *msgh);

DESCRIPTION        top

       These functions are used to access data in the payload delivered       byio_uring_prep_recvmsg_multishot(3).msgh should point to thestruct msghdr submitted with the request.io_uring_recvmsg_validate(3) will validate a buffer delivered byio_uring_prep_recvmsg_multishot(3) and extract theio_uring_recvmsg_out if it is valid, returning a pointer to it or       else NULL.       The structure is defined as follows:           struct io_uring_recvmsg_out {                   __u32 namelen;    /* Name byte count as would have been populated                                      * by recvmsg(2) */                   __u32 controllen; /* Control byte count */                   __u32 payloadlen; /* Payload byte count as would have been returned                                      * by recvmsg(2) */                   __u32 flags;      /* Flags result as would have been populated                                      * by recvmsg(2) */           };       *io_uring_recvmsg_name(3)          returns a pointer to the name in the buffer.       *io_uring_recvmsg_cmsg_firsthdr(3)          returns a pointer to the first cmsg in the buffer, or NULL.       *io_uring_recvmsg_cmsg_nexthdr(3)          returns a pointer to the next cmsg in the buffer, or NULL.       *io_uring_recvmsg_payload(3)          returns a pointer to the payload in the buffer.       *io_uring_recvmsg_payload_length(3)          Calculates the usable payload length in bytes.

SEE ALSO        top

io_uring_prep_recvmsg_multishot(3)

COLOPHON        top

       This page is part of theliburing (A library for io_uring)       project.  Information about the project can be found at        ⟨https://github.com/axboe/liburing⟩.  If you have a bug report for       this manual page, send it to io-uring@vger.kernel.org.  This page       was obtained from the project's upstream Git repository       ⟨https://github.com/axboe/liburing⟩ on 2025-08-11.  (At that time,       the date of the most recent commit that was found in the       repository was 2025-08-02.)  If you discover any rendering       problems in this HTML version of the page, or you believe there is       a better or more up-to-date source for the page, or you have       corrections or improvements to the information in this COLOPHON       (which isnot part of the original manual page), send a mail to       man-pages@man7.orgliburing-2.2                  July 26, 2022io_uring_recvmsg_out(3)

Pages that refer to this page:io_uring_recvmsg_cmsg_firsthdr(3)io_uring_recvmsg_cmsg_nexthdr(3)io_uring_recvmsg_name(3)io_uring_recvmsg_out(3)io_uring_recvmsg_payload(3)io_uring_recvmsg_payload_length(3)io_uring_recvmsg_validate(3)



HTML rendering created 2025-09-06 byMichael Kerrisk, author ofThe Linux Programming Interface.

For details of in-depthLinux/UNIX system programming training courses that I teach, lookhere.

Hosting byjambit GmbH.

Cover of TLPI


[8]ページ先頭

©2009-2025 Movatter.jp