cb710_sg_dw...rite_from_io(9)
π 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_ATOMICis set. - Otherwise? don't care. literally don't care. live your life π
π SEE ALSO π
- Kernel file
./include/linux/cb710.h cb710_sg_dwiter_read_to_io(9)β the mirror-image bestie, the one that reads instead π
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
- 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