xcb_dri3_pixmap_from_buffer(3)
π xcb_dri3_pixmap_from_buffer(3) π
okay bestie, welcome to the XCB Requests corner of the manual, where we're gonna talk about xcb_dri3_pixmap_from_buffer β and no, I'm not gonna pretend this one is well-documented, because it is not, and we're gonna be honest about that together π«Ά
β¨ NAME β¨
xcb_dri3_pixmap_from_buffer β literally just the name, the manpage gave us nothing else here, not even a one-liner. iconic of it honestly π
πΈ SYNOPSIS πΈ
First, you gotta pull in the header, no cap:
#include <xcb/dri3.h>
π Request function π
xcb_void_cookie_t xcb_dri3_pixmap_from_buffer(xcb_connection_t *conn,
xcb_pixmap_t pixmap, xcb_drawable_t drawable, uint32_t size,
uint16_t width, uint16_t height, uint16_t stride, uint8_t depth,
uint8_t bpp, int32_t pixmap_fd);
that's the whole vibe. ten arguments. she's high maintenance and we love her π
π¦ REQUEST ARGUMENTS π¦
okay so here's the thing β the upstream docs for every single one of these says TODO: NOT YET DOCUMENTED. and I am not about to make stuff up and lie to you, bestie. so here's the honest list, every arg, exactly as undocumented as the source says:
connβ the XCB connection to X11. that part is documented, slay β¨pixmapβTODO: NOT YET DOCUMENTED.πdrawableβ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.π
not me reading a manpage that's 90% "TODO: NOT YET DOCUMENTED." β if you need the real tea on what these do, go read the protocol spec, because this page is giving placeholder energy and nothing else π
π DESCRIPTION π
β¦yeah. there's nothing here. the DESCRIPTION section is empty. the void. the silence. main character energy but make it absent π
β RETURN VALUE β
She returns an xcb_void_cookie_t, bestie. and listen β errors, if there are any, have to be handled in the event loop. that's the rule, periodt.
But if you'd rather handle errors directly with xcb_request_check instead of doing the whole event-loop dance, then you want xcb_dri3_pixmap_from_buffer_checked β she's the sibling function for exactly that. more details live in xcb-requests(3), go read it, iykyk π
π ERRORS π
good news for once: this request does never generate any errors. zero. none. clean run, no drama, we love a low-maintenance king π₯
π SEE ALSO π
β¦it's empty. nothing to see. nothing to also. the section is there and it is β¨vacantβ¨.
π AUTHOR π
This page was generated from dri3.xml. If you've got corrections or improvements, hit up the good people at xcb@lists.freedesktop.org β they're the ones who want to hear it π
okay that's the whole page, bestie!! π thanks for reading my little deep-dive into the most mysterious function in dri3 β and a cute little sign-off for the credits: this is X Version 11, from libxcb 1.17.0, and yes the manpage header/footer has been giving you xcb_dri3_pixmap_from_buffer(3) this whole time like the icon it is π
β¨ mwah, go write some X11 code π¦
π¦ 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