STRUCT LIVEUPDATE_SESSION_GET_NAME(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, this is struct liveupdate_session_get_name β€” the struct that goes with ioctl(LIVEUPDATE_SESSION_GET_NAME). Yes, that's the whole name. Iconic.

✨ SYNOPSIS ✨

       struct liveupdate_session_get_name {
           __u32 size;
           __u32 reserved;
           __u8 name[LIVEUPDATE_SESSION_NAME_LENGTH];
        };

πŸŽ€ Members πŸŽ€

  • size β€” input, bestie: this one is sizeof(struct liveupdate_session_get_name). Literally the size of the struct itself, no cap.
  • reserved β€” input, and it must be zero. It's reserved for future use, so leave it alone. 🫢
  • name β€” output: a null-terminated string with the full session name. Full name, full slay. ✨

πŸ’… Description πŸ’…

So this ioctl retrieves the full name of the session associated with this file descriptor. The whole reason it exists? The kernel may truncate the name shown in /proc, and that is lowkey annoying, so this gives you the full thing. πŸ‘‘

πŸ”₯ Return πŸ”₯

0 on success, negative error code on failure. That's it. Simple. Gorgeous. πŸ’…

🫢 SEE ALSO 🫢

  • Kernel file ./include/uapi/linux/liveupdate.h
  • General ioctl format(9)
  • struct liveupdate_ioctl_create_session(9)
  • struct liveupdate_ioctl_retrieve_session(9)
  • struct liveupdate_session_preserve_fd(9)
  • struct liveupdate_session_retrieve_fd(9)
  • struct liveupdate_session_finish(9)

and that's the vibe check: source/version ./include/uapi/linux, dated October 2026, filed under struct liveu...ion_get_name(9). mwah πŸ’‹

πŸ“¦ where this page comes from