pcie_read_tlp_log(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– pcie_read_tlp_log(9) πŸ’–

okay so bestie, welcome to the pcie_read_tlp_log kernel API man page β€” yes, that's the function name, and yes, it's giving "PCIe girlie who knows exactly what she's doing" energy. This is the manual for reading a TLP Header Log, and we're gonna get into it. πŸŽ€


✨ NAME ✨

pcie_read_tlp_log β€” read TLP Header Log

Like, it reads the TLP Header Log. That's the whole vibe. No cap. πŸ’…


🌸 SYNOPSIS 🌸

int pcie_read_tlp_log (struct pci_dev *dev , int where , int where2 ,
       unsigned int tlp_len , bool flit , struct pcie_tlp_log *log );

This is the exact signature, bestie β€” every parameter, every comma, every space. Don't come for me about formatting, this is literally how it's printed. 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” the PCIe device. The main character of this whole operation, honestly. πŸ’…
  • where β€” PCI Config offset of TLP Header Log. That's where the Header Log lives, periodt.
  • where2 β€” PCI Config offset of TLP Prefix Log. Second offset, second location, same icon energy. ✨
  • tlp_len β€” TLP Log length (Header Log + TLP Prefix Log in DWORDs). Yes, it's the combined length, and yes, it's measured in DWORDs. 🧚
  • flit β€” TLP Logged in Flit mode. A bool, so it's a yes/no situation, not a whole essay. πŸ’€
  • log β€” TLP Log structure to fill. This is the output bestie β€” the whole point of the function. πŸ“

πŸ’œ DESCRIPTION πŸ’œ

So what does this actually do? It fills log from the TLP Header Log registers, e.g., AER or DPC. That's it. That's the function. Fill the log, slay the day. πŸ”₯

No guessing, no extra lore β€” the original says it fills the log from the TLP Header Log registers, and gives AER and DPC as examples. That's the whole story. πŸ‘‘


🌈 RETURN 🌈

  • 0 on success and filled TLP Log structure. We love a successful fill. ✨
  • <0 on error. Not iconic, but it happens. 😭
bestie please actually check the return value, okay? <0 means something went wrong and the log did not get its moment. πŸ™ˆ

⭐ SEE ALSO ⭐

iykyk β€” go read those next if you want the full PCIe TLP lore. πŸ¦‹


and that's the page, bestie! this manual page is from ./drivers/pci/pcie, dated October 2026, and it's literally called pcie_read_tlp_log(9) β€” so you already know what time it is. periodt. πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from