zpci_clear_error_state(9)
π zpci_clear_error_state β the Kernel API Manual said what it said
Okay bestie, so this one is zpci_clear_error_state from the Kernel API Manual, and honestly? It does exactly one thing and it does it with main character energy: it wipes the zPCI error state off a device. Clean slate, fresh start, aura restored. β¨
π SYNOPSIS π
int zpci_clear_error_state (struct zpci_dev *zdev );
Yep. That's the whole signature. One argument, returns an int. Iconic, lowkey.
πΈ ARGUMENTS πΈ
zdevβ thezdevwhose zPCI error state you want reset. Like, that's your girl right there. She's the one getting un-errored. π«Ά
β¨ DESCRIPTION β¨
So here's the vibe: you call this, and it clears the zPCI error state of the device. Bada bing, bada boom. π«
But listen β and this is the important part, so don't skip it β if clearing the zPCI error state fails, the device is just... left in the error state. No rescue, no glow-up. It stays in its flop era. π
And in that case, it may make sense to call zpci_io_perm_failure on the associated pdev, but only if it exists. That's the "may make sense" β not a promise, just a suggestion, iykyk. π
Not me writing this with zero % guarantee: fail = device stays errored, and that's just how it is. Plan accordingly, bestie. π
β RETURN β
0on success β slay, we ate π-EIOotherwise β it's giving "the I/O said no" π
π SEE ALSO π
Look at this friend group, literally all of them:
- Kernel file
./arch/s390/pci/pci.c zpci_hot_reset_device(9)zpci_create_device(9)zpci_add_device(9)zpci_scan_configured_device(9)zpci_deconfigure_device(9)zpci_device_reserved(9)zpci_reset_load_store_blocked(9)
k bye bestie π β this page came to you from ./arch/s390/pci, dated October 2026, and yes it's still zpci_clear_error_state(9) because we don't do rebranding around here. π
π¦ 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