xcb_dri3_buffer_from_pixmap(3)
π xcb_dri3_buffer_from_pixmap(3) π
okay bestie, so this is a page from XCB Requests β it's part of libxcb, and it lives in section 3 of the manual (that's the "library functions" section, iykyk). Buckle up, because this one is mostly vibes and TODO notes, and honestly? We respect the honesty. π«Ά
β¨ NAME β¨
xcb_dri3_buffer_from_pixmap β and that's it. That's the whole name section. No description. Empty. A blank canvas. The silence is loud, fr fr. π
πΈ SYNOPSIS πΈ
First thing you gotta do is pull in the header, no cap:
#include <xcb/dri3.h>
π Request function π
This is the function that sends the request, and it hands you back a cookie (a cookie, bestie, that's the actual XCB terminology, we didn't make it up):
xcb_dri3_buffer_from_pixmap_cookie_t
xcb_dri3_buffer_from_pixmap(xcb_connection_t *conn,
xcb_pixmap_t pixmap);
π¦ Reply datastructure π¦
And here's the struct you get back β look at her, all fields and padding:
typedef struct xcb_dri3_buffer_from_pixmap_reply_t {
uint8_t response_type;
uint8_t nfd;
uint16_t sequence;
uint32_t length;
uint32_t size;
uint16_t width;
uint16_t height;
uint16_t stride;
uint8_t depth;
uint8_t bpp;
uint8_t pad0[12];
} xcb_dri3_buffer_from_pixmap_reply_t;
π Reply function π
And this is the one you actually call to redeem that cookie and get the goods:
xcb_dri3_buffer_from_pixmap_reply_t
*xcb_dri3_buffer_from_pixmap_reply(xcb_connection_t *conn,
xcb_dri3_buffer_from_pixmap_cookie_t cookie,
xcb_generic_error_t **e);
β REQUEST ARGUMENTS β
connβ the XCB connection to X11. Your little phone line to the server, basically. β¨pixmapβ TODO: NOT YET DOCUMENTED. yeah. They said what they said. π
π REPLY FIELDS π
response_typeβ the type of this reply, and for this one specifically it'sXCB_DRI3_BUFFER_FROM_PIXMAP. This field also shows up in thexcb_generic_reply_t, so you can use it to tell your replies apart from each other. It's the reply's little name tag. πsequenceβ the sequence number of the last request processed by the X11 server.lengthβ the length of the reply, measured in words. And a word is 4 bytes, in case you were about to google it. πnfdβ TODO: NOT YET DOCUMENTED.sizeβ TODO: NOT YET DOCUMENTED.widthβ TODO: NOT YET DOCUMENTED.heightβ TODO: NOT YET DOCUMENTED.strideβ TODO: NOT YET DOCUMENTED.depthβ TODO: NOT YET DOCUMENTED.bppβ TODO: NOT YET DOCUMENTED.pixmap_fdβ TODO: NOT YET DOCUMENTED.
bestie I'm not gonna lie to you: that is a lot of TODOs. Not me reading an entire field list of "NOT YET DOCUMENTED." π The pad0[12] in the struct up there doesn't even get its own entry, so don't come for me about it.
π§ DESCRIPTION π§
...yeah. It's empty. There is no description. It's giving mystery. It's giving figure it out yourself, queen. π«Ά
π₯ RETURN VALUE π₯
You get back an xcb_dri3_buffer_from_pixmap_cookie_t. Cute, right? But listen β errors have to be handled when you call the reply function, xcb_dri3_buffer_from_pixmap_reply. That's where they show up. Don't skip that part, I'm begging. π
And if you'd rather handle errors inside your event loop instead (very main character of you), use xcb_dri3_buffer_from_pixmap_unchecked instead. See xcb-requests(3) for all the details on that whole situation.
π ERRORS π
This request does never generate any errors. Not one. Zero. A perfect, error-free angel. β¨
π SEE ALSO π
Nothing here. Empty section, empty heart. Moving on. π
π AUTHOR π
Generated from dri3.xml. If you've got corrections or improvements, hit up xcb@lists.freedesktop.org β they're literally asking, so slide into their inbox. π
okay that's the whole page, bestie, you made it to the end π β this one came from X Version 11 and libxcb 1.17.0, and it's signed off as xcb_dri3_buffer_from_pixmap(3). mwah, go forth and buffer responsibly πβ¨π¦
π¦ where this page comes from
- alpine 3.22: libxcb-doc 1.17.0-r0 Β· MIT
- alpine 3.23: libxcb-doc 1.17.0-r1 Β· MIT
- alpine 3.24: libxcb-doc 1.17.0-r2 Β· MIT
- arch rolling: libxcb 1.17.0-1 Β· X11
- centos-stream 10: libxcb-devel 1.17.0-3.el10 Β· X11
- debian trixie: libxcb-doc 1.17.0-2
- fedora 43: libxcb-devel 1.17.0-6.fc43 Β· X11
- fedora 43: libxcb-devel 1.17.0-6.fc43 Β· X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 Β· X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 Β· X11
- nixpkgs unstable: libxcb 1.17.0
- opensuse-leap 16.0: libxcb-devel-doc 1.17.0-160000.2.2 Β· MIT
- ubuntu questing: libxcb-doc 1.17.0-2build1
- ubuntu resolute: libxcb-doc 1.17.0-2ubuntu1
- ubuntu stonking: libxcb-doc 1.17.0-2ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms