xcb_dri3_open(3)
β¨ xcb_dri3_open β¨
okay bestie, we're in the XCB Requests part of the manual (section 3, obviously), and today's main character is xcb_dri3_open. yes it's giving "one function that opens a DRI3 thing" and yes we're gonna read the whole thing together. grab a boba. π
πΈ NAME πΈ
xcb_dri3_open β
and that's it. that's the whole name section. no description. the manpage literally trailed off into the void and left us with a dash. lowkey iconic of it to say nothing. π«Ά
π¦ SYNOPSIS π¦
first up, the include, because you can't summon the function without the header:
#include <xcb/dri3.h>
Request function π
xcb_dri3_open_cookie_t xcb_dri3_open(xcb_connection_t *conn,
xcb_drawable_t drawable, uint32_t provider);
Reply datastructure π
typedef struct xcb_dri3_open_reply_t {
uint8_t response_type;
uint8_t nfd;
uint16_t sequence;
uint32_t length;
uint8_t pad0[24];
} xcb_dri3_open_reply_t;
Reply function π
xcb_dri3_open_reply_t *xcb_dri3_open_reply(xcb_connection_t *conn,
xcb_dri3_open_cookie_t cookie, xcb_generic_error_t **e);
π REQUEST ARGUMENTS π
connβ the XCB connection to X11. your lil phone line to the server, fr fr. πdrawableβ TODO: NOT YET DOCUMENTED. yeah. the docs said "not yet" and honestly that's so real of them. πproviderβ TODO: NOT YET DOCUMENTED. same energy. we don't know. it's a mystery. auint32_tmystery. π
π REPLY FIELDS π
response_typeβ the type of this reply, which in this specific case isXCB_DRI3_OPEN. this field is also hanging out 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 at the function. π·οΈsequenceβ the sequence number of the last request the X11 server processed. the receipts, basically. π§Ύlengthβ how long the reply is, measured in words. and bestie, a word is4bytes here. not a text word. a word word. don't get it twisted. β¨nfdβ TODO: NOT YET DOCUMENTED. πdevice_fdβ TODO: NOT YET DOCUMENTED. the manpage really said "you'll find out" and dipped. π
π DESCRIPTION π
literally nothing here. the section exists, it's named DESCRIPTION, and it contains zero words. a true minimalist queen. no cap. π
β RETURN VALUE β
so xcb_dri3_open hands you back an xcb_dri3_open_cookie_t. the catch? errors have to be handled when you call the reply function xcb_dri3_open_reply. that's the deal, that's the arrangement. π
but wait β if you'd rather handle errors in the event loop instead of right at reply time, use xcb_dri3_open_unchecked. see xcb-requests(3) for the details, iykyk. π
π₯ ERRORS π₯
this request does never generate any errors.
like, never ever. not one. so if you were bracing for an error, you can unclench bestie. π
πΈ SEE ALSO πΈ
nothing listed. the SEE ALSO section is a beautiful empty room with great lighting. we love her. π¦
π AUTHOR π
Generated from dri3.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. (yes they want your emails, they're very open to feedback, go be helpful. π)
that's the whole page babes, and it was brought to you by X Version 11 with libxcb 1.17.0, filed under xcb_dri3_open(3). go open some DRI3 things. you ate. periodt. πβ¨π«Ά
π¦ 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