XCB_SELINUX_GET_DEVICE_CONTEXT_CONTEXT_END(3)
π xcb_selinux_get_device_context β a page from the XCB Requests saga π
okay so bestie, we're in xcb_selinux_get_device_context(3) territory, and this is your girl walking you through it. it's giving very niche, very X11, very SELinux. buckle up π
β¨ NAME β¨
xcb_selinux_get_device_context -
(yes. that's it. that's the whole name section. the description slot is just... empty. iconic of it honestly π)
β¨ SYNOPSIS β¨
#include <xcb/xselinux.h>
π¦ Request function π¦
xcb_selinux_get_device_context_cookie_t
xcb_selinux_get_device_context(xcb_connection_t *conn,
uint32_t device);
π¦ Reply datastructure π¦
typedef struct xcb_selinux_get_device_context_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint32_t context_len;
uint8_t pad1[20];
} xcb_selinux_get_device_context_reply_t;
π¦ Reply function π¦
xcb_selinux_get_device_context_reply_t
*xcb_selinux_get_device_context_reply(xcb_connection_t *conn,
xcb_selinux_get_device_context_cookie_t cookie,
xcb_generic_error_t **e);
π¦ Reply accessors π¦
char *xcb_selinux_get_device_context_context(const
xcb_selinux_get_device_context_request_t *reply);
int xcb_selinux_get_device_context_context_length(const
xcb_selinux_get_device_context_reply_t *reply);
xcb_generic_iterator_t xcb_selinux_get_device_context_context_end(const
xcb_selinux_get_device_context_reply_t *reply);
(and yes, xcb_selinux_get_device_context_request_t really is spelled like that up there. not me fixing it, not me touching it, that's just the canon β¨)
β¨ REQUEST ARGUMENTS β¨
connβ your XCB connection to X11, the whole reason any of this is happening. π«Άdeviceβ and the docs say, verbatim:TODO: NOT YET DOCUMENTED.like... the mystery of it all π
β¨ REPLY FIELDS β¨
response_typeβ what kind of reply this even is. in this case, it'sXCB_SELINUX_GET_DEVICE_CONTEXT. plot twist: this field also lives insidexcb_generic_reply_t, so you can use it to tell your replies apart from each other when they're all piling up in the group chat.sequenceβ the sequence number of the last request the X11 server actually processed. the receipts, basically.lengthβ how long the reply is, in words. and a word, bestie, is 4 bytes.context_lenβ the documentation here is literally justTODO: NOT YET DOCUMENTED.so... yeah. we simply do not know. π
β¨ DESCRIPTION β¨
(blank. no notes. the void stares back. π)
β¨ RETURN VALUE β¨
So you get handed back an xcb_selinux_get_device_context_cookie_t. πͺ
Errors? you don't deal with them right here β you handle them when you call the reply function, xcb_selinux_get_device_context_reply.
But if you'd rather catch your errors in the event loop instead (main character behavior, honestly), use xcb_selinux_get_device_context_unchecked. Go read xcb-requests(3) for the full tea on how that works.
β¨ ERRORS β¨
π This request does never generate any errors.
like... none. zero. not a single one. slay.
β¨ SEE ALSO β¨
(nothing listed. it's giving minimalist. it's giving mystery. π)
β¨ AUTHOR β¨
Generated from xselinux.xml. Wanna send corrections or improvements? Contact xcb@lists.freedesktop.org β they're literally waiting for your email, bestie. π
and that's the whole page!! πΈ this beauty came to you courtesy of X Version 11 and libxcb 1.17.0, and it's filed under xcb_selinux_get_device_context(3). go forth and query those device contexts, you absolute legend πβ¨π
π¦ 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