cb710_sg_dw...rite_from_io(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… cb710_sg_dwiter_write_from_io β€” NAME ✨

okay so bestie, this is cb710_sg_dwiter_write_from_io (the header up top squishes it to cb710_sg_dw...rite_from_io(9) but that's just the vibe of long function names, iykyk) β€” it transfers data to a mapped buffer from a 32-bit IO port. like, it's the write-y direction, not the read-y one πŸ¦‹


🌸 SYNOPSIS 🌸

void cb710_sg_dwiter_write_from_io (struct sg_mapping_iter *miter , void
       __iomem *port , size_t count );

yes it's a void function, she gives nothing back, she just does the thing πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • miter β€” the sg mapping iter, aka the little cursor goblin that knows where in the buffer we're writing 🧚
  • port β€” the PIO port, which is an IO or MMIO address (both slay, it handles either) ✨
  • count β€” how many 32-bit words we're transferring. like the word count but make it hex πŸ”₯

πŸ‘‘ DESCRIPTION πŸ‘‘

So here's the tea: it reads count 32-bit words out of the register port and stores them in the buffer that's being iterated by miter. she's pulling from the port and dropping it in the buffer, no cap 🫢

Data that would overflow the buffer? silently ignored. not a warning, not a whisper, not even a "bestie waitβ€”" β€” just gone. πŸ’€ so if you're not sure your buffer's big enough, that's a you problem, and the kernel will not be telling you about it πŸ™ˆ

The iterator gets advanced by 4*count bytes, or up to the buffer's end β€” whichever one is closer. she stops at the end of the buffer like a polite queen ⭐


πŸ¦‹ CONTEXT πŸ¦‹

  • IRQ is disabled if SG_MITER_ATOMIC is set.
  • Otherwise? don't care. literally don't care. live your life πŸ“

🌈 SEE ALSO 🌈


so that's the whole page, mwah πŸ’– this one lives in ./include/linux, dated October 2026, and it's part of the Kernel API Manual β€” go forth and write your 32-bit words, icon, and remember: overflow is silent, so double-check your count before you send it πŸ”₯πŸ‘‘πŸŽ€

πŸ“¦ where this page comes from