pcie_tph_set_st_entry(9)
π pcie_tph_set_st_entry β the Kernel API Manual glow-up π
okay so bestie, welcome to the pcie_tph_set_st_entry(9) page, straight out of the Kernel API Manual. this is the little function that writes a Steering Tag into an ST table entry, and honestly? she's giving precise, she's giving surgical, and she's about to eat. β¨
πΈ NAME πΈ
pcie_tph_set_st_entry β literally just Set Steering Tag in the ST table entry. that's it, that's the whole vibe. π
π¦ SYNOPSIS π¦
int pcie_tph_set_st_entry (struct pci_dev *pdev , unsigned int index ,
u16 tag );
like, copy it exactly please, i'm not playing π
β¨ ARGUMENTS β¨
pdevβ the PCI device in question, our main character π«Άindexβ the ST table entry index, i.e. which slot we're writing into πtagβ the Steering Tag to be written. that's the payload, the moment, the whole point π
π DESCRIPTION π
okay so here's what she does, and this part is actually iconic: the function figures out the proper location of the ST table β and by that i mean it's either in the MSI-X table or in the TPH Extended Capability space π β and then it writes the Steering Tag into the ST entry pointed by index. no cap, that's the whole plot. the way she just knows where the table lives?? obsessed. π§
π₯ RETURN π₯
0 if success β¨ β otherwise a negative value (-errno), which is the kernel's way of saying "we're not okay" π
π SEE ALSO π
- Kernel file
./drivers/pci/tph.c pcie_tph_get_st_table_loc(9)pcie_tph_get_cpu_st(9)pcie_disable_tph(9)pcie_enable_tph(9)
go read those too bestie, iykyk π
lowkey a reminder: all these options, values, types and paths are the real deal β don't go renaming them, fr fr π
and that's the page, periodt π
shoutout one last time to pcie_tph_set_st_entry(9) from the Kernel API Manual, sourced out of ./drivers/pci, dated October 2026 β slay, see you in the next one, 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