zpci_report_status(9)
π©· zpci_report_status(9) β the Kernel API Manual glow-up π©·
okay so bestie, welcome to the zpci_report_status(9) page β straight out of the Kernel API Manual, and tbh it's a little baddie that does one thing and does it well. let's get into it π
β¨ NAME β¨
zpci_report_status β Report the status of operations on a PCI device π
like⦠that's the whole vibe. it reports status. on a PCI device. iconic behavior honestly.
π¦ SYNOPSIS π¦
int zpci_report_status (struct zpci_dev *zdev , struct pci_dev *pdev ,
const char *operation , const char *status );
copy it exactly, no cap β that's the signature, character for character, and we stan a consistent prototype. π₯
πΈ ARGUMENTS πΈ
zdevβ the zPCI device you're reporting status for, like, the main character of this whole situation πpdevβ the PCI device that's associated with thezdevif there is one β and if there isn't?NULL. no device, no problem πoperationβ a string representing the operation being reported, i.e. what went downstatusβ a string representing the status of that operation, i.e. how it went π«Ά
π DESCRIPTION π
so what does this function actually do, you ask? okay so:
it creates a human readable report about an operation β think stuff like PCI device recovery β and then it forwards that report to the platform using the SCLP Write Event Data mechanism. slay. β¨
and it's not just the operation and status strings, bestie. the report also scoops up extra info about the device that's deemed useful for debug, like:
- the currently bound device driver, if any
- the error state
plus β and this is lowkey the cute part β a string representation of pci_debug_msg_id gets included too, or as much as fits. not me fitting the whole debug id inβ¦ or not. whatever fits, fits. π
β RETURN β
0on success π- an error code
< 0otherwise π
that's it. zero means we ate, negative means something's giving error energy.
π SEE ALSO π
- Kernel file
./arch/s390/pci/pci_report.cβ go read the source, iykyk π§
fr fr, if you're debugging zPCI stuff on s390, that file is your bestie too.
and that's the page!! mwah π
this lil gem lives in ./arch/s390/pci, dated October 2026 β so like, future vibes only. byeee bestie, go report some statuses responsibly ππ
π¦ 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