tpacpi_check_quirks(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ tpacpi_check_quirks ✨

okay so bestie, this is a page from the Kernel API Manual β€” the tpacpi_check_quirks(9) one πŸ’… and it's literally about searching the BIOS/EC version on a list. stay with me, it's cute, i promise 🫢


🌸 SYNOPSIS 🌸

unsigned long tpacpi_check_quirks (const struct tpacpi_quirk *qlist ,
       unsigned int qlist_size );

πŸŽ€ ARGUMENTS πŸŽ€

  • qlist β€” the array of struct tpacpi_quirk. that's the list we're scrolling through, like a group chat of quirks πŸ“±
  • qlist_size β€” how many elements are in qlist. so, the headcount in that group chat πŸ”’

πŸ¦‹ DESCRIPTION πŸ¦‹

so what it does: it iterates over a quirks list until it finds one that matches the ThinkPad's vendor, BIOS and EC model. that's it, that's the vibe check ✨

the match criteria is: vendor, ec and bios must match. all three, no cap. not two out of three, not "close enough" β€” all three or it's not the one πŸ‘‘

πŸ’– RETURN πŸ’–

0 if nothing matches 😭 (no match, no sparkle) β€” otherwise it returns the quirks field of the matching struct tpacpi_quirk entry. the one that made it through the vibe check gets to shine 🌟

🌈 SEE ALSO 🌈

  • Kernel file ./drivers/platform/x86/lenovo/thinkpad_acpi.c β€” go read the source, iykyk πŸ“–
  • usbc_security_query(9) β€” another one for your reading list 🧚

lowkey reminder bestie: the match is strict β€” vendor, ec and bios. if your entry fumbles even one of those, nobody's getting matched πŸ’€

and that's the page!! made it out of ./drivers/platform/x86/lenovo, dated October 2026 πŸŽ€πŸ’œ slay, go forth and match those quirks fr fr 🌸

πŸ“¦ where this page comes from