xcb_dri2_get_param(3)
π xcb_dri2_get_param π
okay bestie, welcome to the xcb_dri2_get_param(3) page β yes it's a section 3 manual page, yes it's from libxcb, and yes we're gonna get through it together. it's an XCB request, so it's giving "talk to the X server, get a thing back" energy. let's go π¦
β¨ NAME β¨
xcb_dri2_get_param β and that's literally it π the upstream page just has a lil dash here, no summary, nothing. so we keep it real: name's xcb_dri2_get_param, and the description is a mystery. moving on, bestie π
β¨ SYNOPSIS β¨
first up, you gotta include the header:
#include <xcb/dri2.h>
π Request function
xcb_dri2_get_param_cookie_t xcb_dri2_get_param(xcb_connection_t *conn,
xcb_drawable_t drawable, uint32_t param);
π Reply datastructure
typedef struct xcb_dri2_get_param_reply_t {
uint8_t response_type;
uint8_t is_param_recognized;
uint16_t sequence;
uint32_t length;
uint32_t value_hi;
uint32_t value_lo;
} xcb_dri2_get_param_reply_t;
π Reply function
xcb_dri2_get_param_reply_t
*xcb_dri2_get_param_reply(xcb_connection_t *conn,
xcb_dri2_get_param_cookie_t cookie, xcb_generic_error_t **e);
so you fire off the request, you get a cookie back, and then you trade that cookie in for the actual reply. that's the whole vibe π₯
πΈ REQUEST ARGUMENTS πΈ
connβ your XCB connection to X11. the lil friendship bracelet that ties you to the server π«Άdrawableβ TODO: NOT YET DOCUMENTED. yeah bestie, upstream never wrote this one up. not me making up facts, we're keeping it exactly as-is πparamβ TODO: NOT YET DOCUMENTED. same situation. the docs said "later" and later never came π
π¦ REPLY FIELDS π¦
response_typeβ the type of this reply, and in this case it'sXCB_DRI2_GET_PARAM. this field also lives in thexcb_generic_reply_t, so you can use it to tell your replies apart from each other. it's giving "name tag at the party" πsequenceβ the sequence number of the last request the X11 server processed. yes, the server keeps receipts β¨lengthβ how long the reply is, in words. and heads up: a word here is 4 bytes. not a dictionary word. a four-byte word. iykyk πis_param_recognizedβ TODO: NOT YET DOCUMENTED. blank. empty. nothing. the void stared back πvalue_hiβ TODO: NOT YET DOCUMENTED. also undocumented, also mysterious, also still in the struct so we still list it πvalue_loβ TODO: NOT YET DOCUMENTED. same energy, bestie. documented: nope. present in the struct: absolutely π
π DESCRIPTION π
there is no description. like, the section exists and then... nothing. the upstream authors really said "describe it? in this economy?" π so we're not inventing one, because inventing facts is not the move. it's iconic in a "left on read" kind of way. periodt.
β RETURN VALUE β
it returns an xcb_dri2_get_param_cookie_t. so what about errors? bestie, errors get handled when you call the reply function xcb_dri2_get_param_reply. that's the moment of truth π
but if you'd rather deal with errors in the event loop instead of right at the reply call, use xcb_dri2_get_param_unchecked. and for the full tea on how all that works, go read xcb-requests(3) β it explains the details πΈ
π§ ERRORS π§
this request does never generate any errors.
not one. zero. clean sheet. slay π₯
π SEE ALSO π
and the SEE ALSO section is... empty. no references listed, nothing to link out to. sometimes the void is the whole section, and we respect it π
π AUTHOR π
generated from dri2.xml. if you wanna send corrections and improvements, hit up xcb@lists.freedesktop.org. they're taking notes, bestie π«Ά
and that's the page!! footer time: this beauty comes to you from X Version 11, shipped in libxcb 1.17.0, and it's filed as xcb_dri2_get_param(3). stay hydrated, read your manpages, and go get that param πβ¨ππ¦πΈπ
π¦ 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