xcb_xf86dri_create_context(3)
π xcb_xf86dri_create_context β the XCB Requests era
okay bestie, so this one lives in section 3 of the manual (that's the xcb_xf86dri_create_context(3) of it all), and it's filed under XCB Requests. yes, the header on the page is literally just the name plus that, no tagline, no subtitle, nothing. the NAME section below is empty too β not me shipping a whole manpage with no one-line summary π. so like, this is the request for creating a DRI context, and the docs are gonna be kinda mysterious about it. buckle up π
β¨ NAME β¨
xcb_xf86dri_create_context β [crickets] π¦
fr fr, there is no description line here in the original. it's giving mystery. moving on.
πΈ SYNOPSIS πΈ
first, the include, don't forget it:
#include <xcb/xf86dri.h>
π Request function
xcb_xf86dri_create_context_cookie_t
xcb_xf86dri_create_context(xcb_connection_t *conn,
uint32_t screen, uint32_t visual, uint32_t context);
π Reply datastructure
typedef struct xcb_xf86dri_create_context_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint32_t hw_context;
} xcb_xf86dri_create_context_reply_t;
π Reply function
xcb_xf86dri_create_context_reply_t
*xcb_xf86dri_create_context_reply(xcb_connection_t *conn,
xcb_xf86dri_create_context_cookie_t cookie,
xcb_generic_error_t **e);
π REQUEST ARGUMENTS π
one bullet per argument, no skips, periodt:
connβ the XCB connection to X11. your whole link to the server, your main character πscreenβTODO: NOT YET DOCUMENTED.yeah bestie, the upstream docs just left this one blank πvisualβTODO: NOT YET DOCUMENTED.also blank. iconic of them honestly.contextβTODO: NOT YET DOCUMENTED.and this one too. three for three π«Ά
π¦ REPLY FIELDS π¦
response_typeβ the type of this reply, and in this case it'sXCB_XF86DRI_CREATE_CONTEXT. this field also lives in thexcb_generic_reply_t, so you can use it to tell replies apart from each other. your little name tag at the party π·οΈsequenceβ the sequence number of the last request processed by the X11 server. yes, the server keeps count, she's organized like that πlengthβ the length of the reply, in words (a word is 4 bytes). so multiply by 4 if you want bytes, iykyk β¨hw_contextβTODO: NOT YET DOCUMENTED.blank again, of course it is πΈ
π DESCRIPTION π
...nothing. the section exists and it's empty. the silence is deafening. it's giving vibe check passed, words not found π
β RETURN VALUE β
returns an xcb_xf86dri_create_context_cookie_t. cookies are the whole XCB thing, you hold onto it and redeem it later πͺ
errors have to be handled when calling the reply function xcb_xf86dri_create_context_reply. that's the moment of truth.
but if you'd rather handle errors in the event loop instead, usexcb_xf86dri_create_context_unchecked. seexcb-requests(3)for details π
π ERRORS π
this request does never generate any errors. not one. zero. clean sheet, ate and left no crumbs β¨
π SEE ALSO π
nothing listed. empty. we love a minimalist queen π
πΈ AUTHOR πΈ
generated from xf86dri.xml. contact xcb@lists.freedesktop.org for corrections and improvements β so if you spot something off, bestie, that's the inbox to slide into π«Ά
and that's the whole page, mwah. this beauty shipped with libxcb 1.17.0 under X Version 11 β the footer said so, so I'm saying so. go create some contexts, no cap ππ¦π
π¦ 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