XCB_SELINUX_GET_DEVICE_CREATE_CONTEXT_REPLY(3)
π xcb_selinux_get_device_create_context(3) β XCB Requests, bestie edition
okay so this one lives in the XCB Requests family, manual section 3 (that's your library-functions girlypop section, iykyk). It's a <pink>SELinux</pink> flavored XCB request, and tbh the manpage itself is a little mysterious about what it does β but everything it does tell us, we're keeping, no cap. π
β¨ NAME β¨
xcb_selinux_get_device_create_context β and likeβ¦ that's it. The description after the dash is literally blank in the source. The void. The silence. π«Ά So the function name is your whole personality here.
πΈ SYNOPSIS πΈ
First things first, you gotta bring in the header:
#include <xcb/xselinux.h>
π Request function
xcb_selinux_get_device_create_context_cookie_t
xcb_selinux_get_device_create_context(xcb_connection_t *conn,
(yes it's just vibing there with a trailing comma, we don't make the rules)
π Reply datastructure
typedef struct xcb_selinux_get_device_create_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_create_context_reply_t;
π¦ Reply function
xcb_selinux_get_device_create_context_reply_t
*xcb_selinux_get_device_create_context_reply(xcb_connection_t *conn,
xcb_selinux_get_device_create_context_cookie_t cookie,
xcb_generic_error_t **e);
π Reply accessors
these little helpers are how you actually get at the good stuff:
char *xcb_selinux_get_device_create_context_context(const
xcb_selinux_get_device_create_context_request_t *reply);
int xcb_selinux_get_device_create_context_context_length(const
xcb_selinux_get_device_create_context_reply_t *reply);
xcb_generic_iterator_t
xcb_selinux_get_device_create_context_context_end(const
xcb_selinux_get_device_create_context_reply_t *reply);
π REQUEST ARGUMENTS π
connβ the XCB connection to X11. your lil phone line to the server, basically. mandatory, obviously.
π REPLY FIELDS π
response_typeβ the type of this reply, and in this case it'sXCB_SELINUX_GET_DEVICE_CREATE_CONTEXT. This field is also present in thexcb_generic_reply_t, and you can use it to tell replies apart from each other. it's giving name tag at a party πsequenceβ the sequence number of the last request processed by the X11 server. order matters, bestie.lengthβ the length of the reply, in words. and a word is 4 bytes. (not a real word. a word-word. computer word. π)context_lenβTODO: NOT YET DOCUMENTED.yeah. that's literally what it says. not me finding an undocumented field in the wild π
π DESCRIPTION π
β¦okay so there's genuinely nothing here. The DESCRIPTION section is empty in the source. a blank page. a canvas. a moment of silence. π
β RETURN VALUE β
It hands you back an xcb_selinux_get_device_create_context_cookie_t. πͺ
And here's the important part: errors have to be handled when you call the reply function xcb_selinux_get_device_create_context_reply.
If you'd rather handle errors in the event loop instead, use xcb_selinux_get_device_create_context_unchecked. See xcb-requests(3) for details β that's the β¨ deep lore β¨ page, go read it.
π₯ ERRORS π₯
This request does never generate any errors.
fr fr. zero errors. the drama-free request. slay. π
π SEE ALSO π
nothing listed. empty. a blank SEE ALSO. no friends on this page, only vibes. π¦
πΈ AUTHOR πΈ
Generated from xselinux.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. so if something's wrong, that's the email, bestie, don't @ me π
and that's the whole page! π this one shipped with X Version 11, part of libxcb 1.17.0 β tysm for reading, drink some water, and go handle those cookies properly. periodt. π β¨
π¦ 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