usbc_security_query(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so bestie, this page is usbc_security_query(9) from the Kernel API Manual, and it's giving β€œread current USB-C security state via USCS()” πŸ’…. that's the whole vibe. no cap, it's literally right there in the name.

πŸŽ€ SYNOPSIS πŸŽ€

the signature is exactly this, character for character:

int usbc_security_query (bool *enabled );

🌸 ARGUMENTS 🌸

  • enabled β€” out param, and it's true when security is ON (data connections blocked). slay.

πŸ”₯ RETURN πŸ”₯

  • 0 β€” success, and enabled contains the current state. periodt.
  • -EIO β€” ACPI evaluation failed. oop.
  • -ENODEV β€” capability bit absent; feature not present on this SKU* β€” iykyk.

πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file: ./drivers/platform/x86/lenovo/thinkpad_acpi.c β€” the source corner.
  • tpacpi_check_quirks(9) β€” quirks check bestie.

mwah πŸ’‹ signing off from ./drivers/platform/x86/lenovo, dated October 2026, for usbc_security_query(9). bye bestie 🫢✨

πŸ“¦ where this page comes from