pmcraid_fai...tanding_cmds(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ pmcraid_fai...tanding_cmds(9) πŸŽ€

okay bestie so first of all, the full name is literally too iconic for one line, that's why the title looks like that πŸ’… this is from the Kernel API Manual and it lives in section 9, and we're about to get so into it.


✨ NAME ✨

pmcraid_fail_outstanding_cmds β€” not me just straight-up failing all outstanding ops 😭 that's literally the whole gig.


🌸 SYNOPSIS 🌸

void pmcraid_fail_outstanding_cmds (struct pmcraid_instance *pinstance
);

πŸ¦‹ ARGUMENTS πŸ¦‹

  • pinstance β€” pointer to adapter instance structure. that's it. that's the whole argument list. she keeps it simple πŸ’–

πŸ”₯ DESCRIPTION πŸ”₯

Okay so what this function does is: it fails all outstanding ops, periodt. No survivors, no stragglers, everybody out of the pool πŸ’€

But like, it's not just being mean for no reason, there's range here:

  • if the ops are already submitted to the IOA, it sends cancel all messages β€” but only if the IOA is still accepting IOARCBs πŸ™ˆ
  • otherwise it just completes the commands and returns the cmd blocks to the free pool 🫢

so she's flexible, she reads the room, she knows when to cancel and when to just wrap it up ✨

ngl this is genuinely the most "clean up your own mess" energy I've ever seen in a kernel function and I respect it so much πŸ‘‘

Return value: none. she returns vibes and nothing else πŸ’…


πŸ‘‘ SEE ALSO πŸ‘‘

grab a snack bestie this list is long β€” this is the whole pmcraid friend group and they're all icons fr fr πŸ“

and yeah, you can also find this whole situation in the kernel file ./drivers/scsi/pmcraid.c β€” that's where she actually lives 🏑


okay that's the whole page bestie, you ate that πŸ’–βœ¨

and for the cute sign-off: this masterpiece came out of ./drivers/scsi and it's dated October 2026 β€” so yeah, she's got a timestamp and she's not afraid to use it πŸŽ€πŸ¦‹ slay, go fail some outstanding ops responsibly πŸ’…

πŸ“¦ where this page comes from