iopf_queue_discard_partial(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– iopf_queue_discard_partial(9) πŸ’–

okay bestie, this page is straight from the Kernel API Manual, and it’s short, sweet, and lowkey important. Let’s get into it ✨


✨ NAME ✨

iopf_queue_discard_partial β€” Remove all pending partial fault πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

int iopf_queue_discard_partial (struct iopf_queue *queue );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • queue β€” the queue whose partial faults need to be discarded 🫢

🌸 DESCRIPTION 🌸

okay so picture this: the hardware queue overflows 😭 and the last page faults in a group may have been lost. When that happens, the IOMMU driver calls this function to discard all partial faults. Slay, cleanup time πŸ’…

bestie, important: the driver shouldn’t be adding new faults to this queue concurrently. fr fr, don’t do that πŸ™ˆ

🌈 RETURN 🌈

Returns 0 on success and <0 on error. That’s it, that’s the vibe check ✨


πŸ’… SEE ALSO πŸ’…

Kernel file ./drivers/iommu/io-pgfault.c πŸ‘‘


made with πŸ’– from the ./drivers/iommu source, Kernel API Manual, October 2026 β€” iopf_queue_discard_partial(9) πŸŽ€βœ¨

πŸ“¦ where this page comes from