tpacpi_check_quirks(9)
β¨ 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 ofstruct tpacpi_quirk. that's the list we're scrolling through, like a group chat of quirks π±qlist_sizeβ how many elements are inqlist. 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
- 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