of_pci_get_...tion_presets(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… of_pci_get_equalization_presets(9) πŸ’…

okay bestie, welcome to the Kernel API Manual β€” yes, that's the manual name, we're fancy here πŸŽ€. Today's main character is of_pci_get_equalization_presets, and no, the header isn't gonna say the whole thing twice, we're not doing that ✨.


🌸 NAME 🌸

of_pci_get_equalization_presets β€” she parses the "eq-presets-Ngts" property. that's it, that's her job, and she ate πŸ’…


✨ SYNOPSIS ✨

int of_pci_get_equalization_presets (struct device *dev , struct
pci_eq_presets *presets , int num_lanes );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” the device that's holding the properties. like, she lives here 🏠
  • presets β€” a pointer where the parsed data gets stored. drop it off, bestie πŸ“¦
  • num_lanes β€” the maximum number of lanes supported. the literal ceiling, no cap πŸš—

πŸ’– DESCRIPTION πŸ’–

so here's the tea β˜•: if the property is actually present, she reads it and stores the data into the presets structure. iconic behavior, honestly.

but if it's not there? she doesn't panic, she doesn't spiral β€” she just assigns a default value of PCI_EQ_RESV and moves on. lowkey graceful 😌✨


πŸ”₯ RETURN πŸ”₯

  • 0 β€” if the property isn't available, or if it got successfully parsed. either way, slay 🫢
  • otherwise, she returns errno. so like, if it's not 0, something went sideways πŸ’€

no other values, no secret third thing, periodt.


πŸ‘‘ SEE ALSO πŸ‘‘

kernel file ./drivers/pci/of.c, plus the whole friend group:


🧚 quick vibe check: everything above is fr fr the actual behavior β€” no invented lore, no extra tips dressed up as facts. iykyk πŸ’œ

and that's the whole page, bestie 🌈 this one lives in ./drivers/pci, dated October 2026, and she's filed under of_pci_get_...tion_presets(9) because apparently we're abbreviating now πŸ’€ mwah, go read some kernel source πŸ“πŸ’–

πŸ“¦ where this page comes from