cxl_acpi_evaluate_qtg_dsm(9)
π cxl_acpi_evaluate_qtg_dsm β kernel API manual, but make it make sense π
okay bestie, so this one's from the Kernel API Manual, and it's literally called cxl_acpi_evaluate_qtg_dsm. Yes, that's a mouthful β say it three times fast, I dare you. It's giving "acronym soup" but honestly it slays once you know what it does: it pulls QTG ids out of ACPI via a _DSM. Iconic behavior, no cap. β¨
πΈ NAME πΈ
cxl_acpi_evaluate_qtg_dsm β Retrieve QTG ids via ACPI _DSM
Like, that's the whole vibe. QTG ids, retrieved, via ACPI _DSM. Simple. Clean. We love a concise name section. π«Ά
π¦ SYNOPSIS π¦
int cxl_acpi_evaluate_qtg_dsm (acpi_handle handle , struct
access_coordinate *coord , int entries , int *qos_class );
That's the signature, copied exactly, character for character β don't come for me about the spacing, that's literally how it is. π
β¨ ARGUMENTS β¨
handleβ the ACPI handle. it's giving "main character energy" for the whole operation tbh πcoordβ the performance access coordinates. this is the bandwidth + latency tea being passed in πentriesβ the number of QTG IDs you want returned. yes, plural, we're collecting them like PokΓ©mon cards πqos_classβ anintarray that you, the caller, provide, so the function has somewhere to write the QTG IDs back to. bring your own storage, bestie π
π₯ RETURN π₯
- the number of QTG IDs returned, or
-errnofor errors
so real talk: if it works you get a count, and if it doesn't you get a negative errno. standard kernel behavior but we're still gonna hype it up π
π DESCRIPTION π
okay so here's the moment you've all been waiting for. This function issues the QTG _DSM, and it comes accompanied by bandwidth and latency data (that's the coord performance access coordinates, iykyk) β the whole point being to get back the QTG IDs that are suitable for that performance point.
And the way it orders them?? Most suitable to least suitable. Literally ranking them. It's a whole vibe check for QTG IDs, and the winners get to go first. π
Then it writes back the array of QTG IDs and returns the actual number of QTG IDs written back. Not the number you asked for β the number it actually wrote back. Important distinction, don't get it twisted. π
β SEE ALSO β
- Kernel file
./drivers/cxl/acpi.c add_cxl_resources(9)
both of these are the friends-in-the-group-chat of this function, go say hi π§
ok warning-ish note from your girl: the return value is the actual number written back, so if you're assuming it equals entries, that's on you, not on me π
<div align="center">πΈ π πΈ</div>
alright bestie that's the whole page!! this one lives in ./drivers/cxl, it's dated October 2026, and it's part of the Kernel API Manual β periodt. go forth and evaluate those QTG _DSMs responsibly, mwah ππ
π¦ 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