xcb_dri2_get_msc(3)
๐ xcb_dri2_get_msc(3) โ XCB Requests ๐
okay bestie, so this is a page from the XCB Requests manual, and yes it lives in section 3, and yes it's giving "generated from an XML file at 2am" energy but we're gonna make it cute. It's the xcb_dri2_get_msc request from libxcb โ the DRI2 "hey server, what's your media stream counter rn" situation. Let's get into it ๐
โจ NAME โจ
xcb_dri2_get_msc โ
lowkey the description here is literally empty in the source, so like... that's the whole vibe. no cap, there's nothing after the dash. ๐
โจ SYNOPSIS โจ
First things first, you gotta pull in the header:
#include <xcb/dri2.h>
๐ฆ Request function ๐ฆ
xcb_dri2_get_msc_cookie_t xcb_dri2_get_msc(xcb_connection_t *conn,
xcb_drawable_t drawable);
๐ฆ Reply datastructure ๐ฆ
typedef struct xcb_dri2_get_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_get_msc_reply_t;
๐ฆ Reply function ๐ฆ
xcb_dri2_get_msc_reply_t *xcb_dri2_get_msc_reply(xcb_connection_t *conn,
xcb_dri2_get_msc_cookie_t cookie, xcb_generic_error_t **e);
๐ธ REQUEST ARGUMENTS ๐ธ
connโ your XCB connection to X11. the whole lifeline, the main character, the reason any of this works ๐drawableโ TODO: NOT YET DOCUMENTED. yeah bestie, the docs said "idk" on this one. iconic of them honestly. ๐ซ
๐ REPLY FIELDS ๐
response_typeโ the type of this reply, and in this case it'sXCB_DRI2_GET_MSC. This field also shows up in thexcb_generic_reply_t, so you can use it to tell your replies apart from each other. it's the little name tag at the party ๐ท๏ธsequenceโ the sequence number of the last request the X11 server processed. tracking numbers but for requests โจlengthโ the length of the reply, 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.
the hi/lo pairs are all just sitting there undocumented, minding their own business, thriving ๐
๐ DESCRIPTION ๐
bestie. there is nothing here. the DESCRIPTION section is empty. it's giving blank canvas, it's giving "we'll fill this in later", it's giving absolutely nothing and honestly? we respect the confidence. ๐
โญ RETURN VALUE โญ
It hands you back an xcb_dri2_get_msc_cookie_t โ a little cookie, a little promise, a little IOU ๐ช
Errors? Those have to be handled when you call the reply function, xcb_dri2_get_msc_reply.
But if you'd rather handle your errors in the event loop instead (very valid, very you), then use xcb_dri2_get_msc_unchecked. Peep xcb-requests(3) for the deets.
๐ ERRORS ๐
This request does never generate any errors. not one. zero. it's a well-behaved king ๐
๐ SEE ALSO ๐
...it's empty. nothing to see here. literally. no references, no friends, no mutuals. a lone wolf. ๐บ
๐ AUTHOR ๐
Generated from dri2.xml. Wanna send corrections or improvements? Contact xcb@lists.freedesktop.org โ they're the ones to @, fr fr. ๐ซถ
and that's the whole page babes!! this one came from X Version 11, shipped with libxcb 1.17.0, and it's the xcb_dri2_get_msc(3) page โ so next time someone asks you about your media stream counter you can just say "iykyk" and point them here. slay, periodt, stay hydrated ๐
โจ๐ธ
๐ฆ 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