xcb_xf86dri_open_connection(3)
π xcb_xf86dri_open_connection β the XCB Requests era β¨
okay bestie, welcome to the xcb_xf86dri_open_connection page, from the XCB Requests corner of the libxcb universe. it's a request function, it's giving DRI, and we're gonna walk through it together π«Ά
πΈ NAME πΈ
xcb_xf86dri_open_connection β
and that's it. that's the whole name section. the original literally just trails off after the dash, no cap π iconic minimalism honestly.
β¨ SYNOPSIS β¨
first things first, you gotta let the compiler know what's up:
#include <xcb/xf86dri.h>
π Request function
xcb_xf86dri_open_connection_cookie_t
xcb_xf86dri_open_connection(xcb_connection_t *conn,
uint32_t screen);
π¦ Reply datastructure
typedef struct xcb_xf86dri_open_connection_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint32_t sarea_handle_low;
uint32_t sarea_handle_high;
uint32_t bus_id_len;
uint8_t pad1[12];
} xcb_xf86dri_open_connection_reply_t;
π Reply function
xcb_xf86dri_open_connection_reply_t
*xcb_xf86dri_open_connection_reply(xcb_connection_t *conn,
xcb_xf86dri_open_connection_cookie_t cookie,
xcb_generic_error_t **e);
π Reply accessors
char *xcb_xf86dri_open_connection_bus_id(const
xcb_xf86dri_open_connection_request_t *reply);
int xcb_xf86dri_open_connection_bus_id_length(const
xcb_xf86dri_open_connection_reply_t *reply);
xcb_generic_iterator_t xcb_xf86dri_open_connection_bus_id_end(const
xcb_xf86dri_open_connection_reply_t *reply);
yes bestie, that first accessor really does take xcb_xf86dri_open_connection_request_t in its signature β that's exactly what the page says, and we are reproducing it character for character, periodt π
π REQUEST ARGUMENTS π
connβ the XCB connection to X11. your lil pipeline to the server, your main character link-up π«Άscreenβ TODO: NOT YET DOCUMENTED. π the docs simply did not show up to the function. we don't know, and I'm not gonna make something up.
π REPLY FIELDS π
response_typeβ the type of this reply, and in this case it'sXCB_XF86DRI_OPEN_CONNECTION. this field also lives in thexcb_generic_reply_t, so you can use it to tell your replies apart from each other. so handy, so iconic πsequenceβ the sequence number of the last request the X11 server processed.lengthβ how long the reply is, in words. and a word here is4bytes, bestie, don't forget that part β¨sarea_handle_lowβ TODO: NOT YET DOCUMENTED. π«sarea_handle_highβ TODO: NOT YET DOCUMENTED. π«bus_id_lenβ TODO: NOT YET DOCUMENTED. π«
three whole TODOs in one struct... the way that documentation just never got written... we love a mystery π₯
π DESCRIPTION π
there is literally nothing here. the DESCRIPTION section is empty. an absolute vibe. no notes. π
β RETURN VALUE β
returns an xcb_xf86dri_open_connection_cookie_t. πͺ
now listen β errors have to be handled when you call the reply function, xcb_xf86dri_open_connection_reply.
but if you'd rather handle errors in the event loop instead, use xcb_xf86dri_open_connection_unchecked. see xcb-requests(3) for the details, iykyk.
π ERRORS π
this request does never generate any errors. not one. zero. a peaceful queen. π
π§ SEE ALSO π§
nothing here either. empty. a beautiful void. (we do shout out xcb-requests(3) up in RETURN VALUE though, so go look there π)
π AUTHOR π
generated from xf86dri.xml. contact xcb@lists.freedesktop.org for corrections and improvements β they're literally asking, bestie, so if you spot something, tell them π«Ά
and that's the whole page, fr fr π huge thank you to X Version 11, libxcb 1.17.0, and of course our girl xcb_xf86dri_open_connection(3) herself β go open that connection, you got this πΈβ¨π
π¦ 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