XCB_DRI3_SET_DRM_DEVICE_IN_USE_CHECKED(3)
π
xcb_dri3_set_drm_device_in_use β the xcb_dri3_set_drm_device_in_use(3) page, but make it make sense
okay bestie, gather round, because we're reading a manual page together and honestly? this one is a lil mysterious even to me. it lives in section 3 of the manual (that's the library-calls girlies), and it's brought to you by libxcb, the X protocol binding that talks to your X server. let's get into it π¦
β¨ NAME β¨
xcb_dri3_set_drm_device_in_use β and that's literally all the NAME section gives us, no cap. it's a DRI3 request, it involves a DRM device, and it's "in use". the rest is vibes and faith π
πΈ SYNOPSIS πΈ
first things first, you gotta pull in the header:
#include <xcb/dri3.h>
π Request function
xcb_void_cookie_t xcb_dri3_set_drm_device_in_use(xcb_connection_t *conn,
xcb_window_t window, uint32_t drmMajor, uint32_t drmMinor);
that's the whole function signature, character for character, don't @ me π
π REQUEST ARGUMENTS π
here's what you're handing over, one by one:
connβ your XCB connection to X11. the whole line to the server, your main character communication channel β¨windowβ TODO: NOT YET DOCUMENTED. yeah. the docs said "we'll get to it". they did not get to it πdrmMajorβ TODO: NOT YET DOCUMENTED. same energy. it's auint32_tand that's all we're officially told πdrmMinorβ TODO: NOT YET DOCUMENTED. also auint32_t, also undocumented, also we move π«Ά
not me reading three whole TODO notices in a row. the documentation is giving "group project, everyone did their part except the part where anyone did their part" π
π DESCRIPTION π
soβ¦ the DESCRIPTION section? it's empty. genuinely, truly, completely empty. nothing. a beautiful blank space where prose should be. the vibe check came back inconclusive, bestie π
(no guessing from me β if the manpage won't say it, I won't invent it. that's the rule π )
β RETURN VALUE β
it hands you back an xcb_void_cookie_t. it's a void cookie, so there's no juicy payload riding along in it β but errors, if any show up, have to be handled over in the event loop. that's the deal, fr fr π₯
now, if you'd rather deal with errors directly instead of waiting around in the event loop, use xcb_dri3_set_drm_device_in_use_checked β that's your girl for that job. and for the full rundown on how any of this cookie business works, go read xcb-requests(3). it's all there β¨
π ERRORS π
good news, gorgeous: this request does never generate any errors. that's it. that's the section. no errors, no drama, no surprise plot twists. iconic behaviour honestly π
π SEE ALSO π
(β¦nothing here either. the SEE ALSO section is a ghost. empty. we're on our own, bestie, but we're on our own together π«Ά)
π§ AUTHOR π§
this page was generated from dri3.xml β yes, machine-generated, which explains a lot about the TODO situation ngl. if you spot something wrong and want corrections and improvements, hit up xcb@lists.freedesktop.org. they take emails, they take feedback, they take vibes π
and that's the whole page, babes π
cute lil sign-off for the footer girlies: this is X Version 11, shipping with libxcb 1.17.0. read it, love it, and remember β when the docs say TODO, the bestie says "we'll figure it out" π β¨πΈ
π¦ 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