ata_unpack_xfermask(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ata_unpack_xfermask(9) β€” the Kernel API Manual, but make it make sense

okay so bestie, we're in the Kernel API Manual today and the star of the show is ata_unpack_xfermask(9). she's a tiny little helper living in ./drivers/ata/libata-core.c and honestly? she ate. let's get into it πŸŽ€


✨ NAME ✨

ata_unpack_xfermask β€” Unpack xfer_mask into pio, mwdma and udma masks

like literally, that's the whole job. one mask goes in, three masks come out. slay.


🌸 SYNOPSIS 🌸

void ata_unpack_xfermask (unsigned int xfer_mask , unsigned int
*pio_mask , unsigned int *mwdma_mask , unsigned int *udma_mask );

no cap, she returns void β€” this function does not hand you anything back. the results just land in your pointers. main character behavior tbh πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • xfer_mask β€” the xfer_mask you're unpacking. this is the one getting taken apart, bestie.
  • pio_mask β€” the resulting pio_mask lands here 🫢
  • mwdma_mask β€” the resulting mwdma_mask goes here ✨
  • udma_mask β€” and the resulting udma_mask goes here 🌈

πŸ’– DESCRIPTION πŸ’–

okay so here's the vibe: ata_unpack_xfermask unpacks xfer_mask into pio_mask, mwdma_mask and udma_mask. that's it, that's the whole thing, and she does it flawlessly πŸ”₯

and the iconique little detail? any NULL destination masks are just... ignored. not mad about it, not throwing an error, just 🧚 minding her own business. so if you only care about one or two of the three, pass NULL for the rest and she literally does not care. periodt.


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/ata/libata-core.c β€” and here's the whole friend group, fr fr (yes, all of them, we're not skipping anyone):


bestie note: there's no exit status, no signals, no env vars, no bugs section here β€” this page is short and sweet, and honestly? we respect the minimalism πŸ’…

and that's the whole page πŸŽ€ sourced from ./drivers/ata, October 2026, version ata_unpack_xfermask(9) β€” ily, go unpack some masks, mwah πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from