STRUCT MODE_ORDER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so bestie, welcome to struct mode_order from the Kernel API Manual πŸ’… this little struct is all about mode activation tracking β€” yes, it’s giving β€œwho’s trying to switch modes and how did it go” energy, no cap.

🌸 SYNOPSIS 🌸

struct mode_order {
    u16 svid;
    int enter;
    int result;
 };

πŸŽ€ Members πŸŽ€

  • svid (u16) β€” the Standard or Vendor ID of the Alternate Mode πŸͺͺ literally the ID badge for the mode, iykyk.
  • enter (int) β€” a flag telling you if the driver is currently attempting to enter or exit the mode. highkey important state check πŸ‘€
  • result (int) β€” the outcome of the attempt to activate the mode. it’s giving receipts for the mode activation attempt 🧾

πŸ’… SEE ALSO πŸ’…

  • Kernel file ./drivers/usb/typec/mode_selection.c β€” the main-character file for this corner of the kernel 🌈
  • struct mode_state(9)
  • struct mode_selection(9)
  • mode_selection_work_fn(9)

bye bestie 🫢 this struct mode_order(9) page comes from source/version ./drivers/usb/typec, dated October 2026. slay and stay type-safe ✨

πŸ“¦ where this page comes from