xcb_sync_get_priority(3)
π xcb_sync_get_priority β the manual page, but make it cute
okay bestie, welcome to xcb_sync_get_priority(3) β it's from the XCB Requests corner of the universe and it's literally here to read a priority value off your X11 server. no thoughts, just vibes and a cookie. let's get into it π
β¨ NAME β¨
xcb_sync_get_priority β (the name section is literally just a dash in the original, so we're keeping it mysterious. iconic behaviour honestly)
π¦ SYNOPSIS π¦
first things first, you gotta include the header:
#include <xcb/sync.h>
Request function (the main character)
xcb_sync_get_priority_cookie_t
xcb_sync_get_priority(xcb_connection_t *conn, uint32_t id);
Reply datastructure (the lil container, she's got range)
typedef struct xcb_sync_get_priority_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
int32_t priority;
} xcb_sync_get_priority_reply_t;
Reply function (where you actually get the tea β)
xcb_sync_get_priority_reply_t
*xcb_sync_get_priority_reply(xcb_connection_t *conn,
xcb_sync_get_priority_cookie_t cookie, xcb_generic_error_t **e);
π REQUEST ARGUMENTS π
connβ your XCB connection to X11. she's the whole portal, the link-up, the way you even talk to the server. no conn, no convo π«Άidβ TODO: NOT YET DOCUMENTED. yeah bestie, the original really said that. we don't know what this id is. it's giving mystery. we keep it honest, we don't make stuff up π
πΈ REPLY FIELDS πΈ
response_typeβ the type of this reply. in this specific case it'sXCB_SYNC_GET_PRIORITY. this field also lives inside thexcb_generic_reply_t, which is lowkey handy because it lets you tell your replies apart from each other. sorting hat energy.sequenceβ the sequence number of the last request that got processed by the X11 server. like a lil "you are here" sticky note β¨lengthβ the length of the reply, measured in words. and before you ask: a word is4bytes. that's the rule, no cap.priorityβ TODO: NOT YET DOCUMENTED. again. the original is not beating the mysterious allegations. we are not inventing lore for it. π
π DESCRIPTION π
the original DESCRIPTION section isβ¦ empty. like, nothing. a blank. a vibe void. so there's nothing to relay here, and we're not about to make up technical claims, because that would be a lie and lying about manpages is not the move. periodt. π
β RETURN VALUE β
you get back an xcb_sync_get_priority_cookie_t. that's the cookie πͺ β hold onto it, because any errors have to be handled when you call the reply function xcb_sync_get_priority_reply.
now, if you'd rather handle your errors in the event loop instead of right at the reply call, use xcb_sync_get_priority_unchecked. and for all the deets on how that works, go peek at xcb-requests(3). iykyk π
π ERRORS π
this request does never generate any errors. not one. zero. she's unproblematic, she's chill, she's never starting drama in the error channel. slay. π
π₯ SEE ALSO π₯
(the SEE ALSO section in the original is empty too β so there are no references listed here. nothing to link, nothing to chase. she's self-sufficient.)
π AUTHOR π
generated from sync.xml. if you spot something wrong or wanna suggest corrections and improvements, hit up xcb@lists.freedesktop.org. the original says it, so we say it. that's the chain of command π«‘
okay that's the whole page, bestie, you ate that. πβ¨
and for the cute sign-off: this page is part of X Version 11, sitting at libxcb 1.17.0, and it's filed under xcb_sync_get_priority(3) β go forth and read your priorities responsibly π¦πΈ
π¦ 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