STRUCT MODE_ORDER(9)
β¨ 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms