xcb_dri2_wait_msc(3)
β¨ NAME β¨
xcb_dri2_wait_msc β okay so bestie, this one is a mystery π the original page literally just gives us the name and a lonely little dash, no description at all. So likeβ¦ it's the xcb_dri2_wait_msc request from the DRI2 crew, and that's genuinely all the manpage tells us. Iconic minimalism, I guess? π
πΈ SYNOPSIS πΈ
First things first, you gotta pull in the header:
#include <xcb/dri2.h>
π Request function
xcb_dri2_wait_msc_cookie_t xcb_dri2_wait_msc(xcb_connection_t *conn,
xcb_drawable_t drawable, uint32_t target_msc_hi,
uint32_t target_msc_lo, uint32_t divisor_hi, uint32_t divisor_lo,
uint32_t remainder_hi, uint32_t remainder_lo);
π¦ Reply datastructure
This is the little struct you get back, and yes, every field is exactly where it should be:
typedef struct xcb_dri2_wait_msc_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint32_t ust_hi;
uint32_t ust_lo;
uint32_t msc_hi;
uint32_t msc_lo;
uint32_t sbc_hi;
uint32_t sbc_lo;
} xcb_dri2_wait_msc_reply_t;
β Reply function
xcb_dri2_wait_msc_reply_t
*xcb_dri2_wait_msc_reply(xcb_connection_t *conn,
xcb_dri2_wait_msc_cookie_t cookie, xcb_generic_error_t **e);
π REQUEST ARGUMENTS π
connβ your XCB connection to X11. The whole vibe starts here, bestie π«Άdrawableβ TODO: NOT YET DOCUMENTED. (The docs really said "figure it out" π)target_msc_hiβ TODO: NOT YET DOCUMENTED.target_msc_loβ TODO: NOT YET DOCUMENTED.divisor_hiβ TODO: NOT YET DOCUMENTED.divisor_loβ TODO: NOT YET DOCUMENTED.remainder_hiβ TODO: NOT YET DOCUMENTED.remainder_loβ TODO: NOT YET DOCUMENTED.
Not me having to relay "TODO: NOT YET DOCUMENTED" eight whole times π that's on the original authors, not me, I'm just the messenger π§
π REPLY FIELDS π
response_typeβ the type of this reply, which in this case isXCB_DRI2_WAIT_MSC. It also lives in thexcb_generic_reply_t, so you can use it to tell your replies apart from each other. Slay, a field with a job πsequenceβ the sequence number of the last request the X11 server processed. It's giving "receipts" π₯lengthβ how long the reply is, in words (and a word is 4 bytes, so do the math bestie).ust_hiβ TODO: NOT YET DOCUMENTED.ust_loβ TODO: NOT YET DOCUMENTED.msc_hiβ TODO: NOT YET DOCUMENTED.msc_loβ TODO: NOT YET DOCUMENTED.sbc_hiβ TODO: NOT YET DOCUMENTED.sbc_loβ TODO: NOT YET DOCUMENTED.
π DESCRIPTION π
Okay soβ¦ there is nothing here. The original page has the DESCRIPTION heading and then absolutely zero words underneath it. An empty section. A void. The silence is loud ππ
β¨ RETURN VALUE β¨
It hands you back an xcb_dri2_wait_msc_cookie_t. The catch? Errors have to be handled when you call the reply function xcb_dri2_wait_msc_reply.
And if you'd rather handle errors in the event loop instead, use xcb_dri2_wait_msc_unchecked. Peep xcb-requests(3) for all the deets π
π ERRORS π
Good news, no cap: this request does never generate any errors. Zero. None. A flawless queen π
π¦ SEE ALSO π¦
Nothing listed here, bestie. The original page left this section empty too. We move in silence π
πΈ AUTHOR πΈ
Generated from dri2.xml. If you wanna send corrections and improvements, hit up xcb@lists.freedesktop.org β they're taking notes, fr fr π«Ά
And that's a wrap on the xcb_dri2_wait_msc(3) page, bestie! π This one comes to you from the X Version 11 era, libxcb 1.17.0 edition, and yeah β a whole lot of it is genuinely still "TODO: NOT YET DOCUMENTED," which is lowkey tragic but also kind of a mood. Go forth and slay your DRI2 waiting, mwah π
β¨
π¦ 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