XCB_SELINUX_SET_DEVICE_CREATE_CONTEXT_CHECKED(3)

πŸ“¦
version 1.17.0 Β· 4 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, debian trixie, fedora 43, fedora 44, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– xcb_selinux_set_device_create_context β€” from the xcb_selinux_s...create_context(3) girlies, XCB Requests division πŸ’–

okay bestie sit DOWN because we're doing a deep dive into a libxcb request and honestly? it's giving niche. it's giving "you're writing SELinux X11 code at 2am." let's get into it πŸ¦‹


✨ NAME ✨

xcb_selinux_set_device_create_context</p> β€” and that's... genuinely it. no little dash-description after it. the manpage said "nope, that's the whole name" and honestly, respect. πŸ’…


🌸 SYNOPSIS 🌸

first things first, you gotta bring in the header:

#include <xcb/xselinux.h>

πŸŽ€ Request function πŸŽ€

xcb_void_cookie_t
       xcb_selinux_set_device_create_context(xcb_connection_t *conn,
       uint32_t context_len, const char *context);

look at her. three little arguments and a cookie. iconic behavior. πŸ”₯


🧚 REQUEST ARGUMENTS 🧚

  • conn β€” the XCB connection to X11. your lil portal to the X server, your group chat with the display, your whole entire vibe. 🫢
  • context_len β€” TODO: NOT YET DOCUMENTED. 😭 yeah bestie, the docs really said "we'll circle back" and then never circled back. no cap, that's literally what it says.
  • context β€” TODO: NOT YET DOCUMENTED. πŸ™ˆ same energy, same silence. the mystery continues.

🌈 DESCRIPTION 🌈

so... the description section is empty. like, void. not a single word. the vibes are immaculate and the information is nonexistent. this section is the main character of absolutely nothing. πŸ’€


⭐ RETURN VALUE ⭐

she returns an xcb_void_cookie_t. that's right, a whole cookie, and you can't even eat it. πŸ“

if there are any errors, you have to handle them in the event loop. that's the deal, that's the contract, no negotiating.

but wait β€” if you'd rather handle errors directly with xcb_request_check instead, then use xcb_selinux_set_device_create_context_checked (yes, the _checked version, the little sibling who tells you the truth). see xcb-requests(3) for the full details. πŸ“–


πŸ‘‘ ERRORS πŸ‘‘

This request does never generate any errors.

not a single one. zero. none. error-free queen behavior. slay. ✨


πŸ’œ SEE ALSO πŸ’œ

...nothing here either. empty. a whole section with nothing in it. we love a minimalist aesthetic, I guess. πŸ¦‹


🌸 AUTHOR 🌸

Generated from xselinux.xml. that's it, that's the origin story β€” it wasn't born, it was generated. ✨

got corrections or improvements? contact xcb@lists.freedesktop.org. they're literally asking, bestie, they want the feedback. 🫢


and that's the whole page!! footer tea: this is X Version 11, rocking libxcb 1.17.0, and the page title goes by xcb_selinux_s...create_context(3) (yes, it's truncated like that, and yes, it's still cute). mwah πŸ’…πŸŽ€πŸ’–