xcb_xf86dri_query_version(3)
xcb_xf86dri_query_version π
okay bestie, welcome to the xcb_xf86dri_query_version(3) page β it lives under the XCB Requests umbrella, and honestly? it's giving "short but iconic." we're asking the X server what version of the DRI (Direct Rendering Infrastructure) it's running. let's get into it β¨
NAME π
xcb_xf86dri_query_version β that's literally it, the description slot is empty, the mystery is the moment π
SYNOPSIS π¦
first things first, you gotta pull in the header:
#include <xcb/xf86dri.h>
β¨ Request function β¨
xcb_xf86dri_query_version_cookie_t
xcb_xf86dri_query_version(xcb_connection_t *conn,
β¨ Reply datastructure β¨
this is the lil struct you get back, and yes every field matters:
typedef struct xcb_xf86dri_query_version_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint16_t dri_major_version;
uint16_t dri_minor_version;
uint32_t dri_minor_patch;
} xcb_xf86dri_query_version_reply_t;
β¨ Reply function β¨
xcb_xf86dri_query_version_reply_t
*xcb_xf86dri_query_version_reply(xcb_connection_t *conn,
xcb_xf86dri_query_version_cookie_t cookie,
xcb_generic_error_t **e);
REQUEST ARGUMENTS π
connβ your XCB connection to X11. that's the whole list, bestie, she's low maintenance π
REPLY FIELDS π§
response_typeβ the type of this reply, which in this case isXCB_XF86DRI_QUERY_VERSION. this field also lives in thexcb_generic_reply_t, so you can use it to tell replies apart from each other. very "which one of y'all is this" energy πsequenceβ the sequence number of the last request processed by the X11 server.lengthβ the length of the reply, in words (and a word here is 4 bytes, no cap).dri_major_versionβTODO: NOT YET DOCUMENTED.the lore is not yet written, we simply do not know πdri_minor_versionβTODO: NOT YET DOCUMENTED.same situation, the docs said "not today" πdri_minor_patchβTODO: NOT YET DOCUMENTED.and this one? also a mystery, iconic of it honestly π
DESCRIPTION πΈ
this section is literally empty in the source, so there's nothing to spill β no notes, no lore, just vibes β¨
RETURN VALUE π
returns an xcb_xf86dri_query_version_cookie_t. the way that errors work here is they have to be handled when you call the reply function xcb_xf86dri_query_version_reply.
and if you'd rather handle errors in the event loop instead, use xcb_xf86dri_query_version_unchecked β see xcb-requests(3) for the details, bestie, it's all in there π«Ά
ERRORS π
this request does never generate any errors. not one. zero. slay, honestly π
SEE ALSO β
this section is empty in the source β nothing linked, nothing listed, just a lil blank space π
AUTHOR π
generated from xf86dri.xml. contact xcb@lists.freedesktop.org for corrections and improvements β they wanna hear from you fr fr π
and that's a wrap on xcb_xf86dri_query_version(3)!! this page came to you from X Version 11, libxcb 1.17.0, and it's officially the end of the page β go query some versions, bestie, 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