tw68_risc_buffer(9)
π tw68_risc_buffer(9) π
okay so bestie, welcome to the Kernel API Manual β yes, this whole page lives in tw68_risc_buffer(9) and we are gonna get through it together, i promise π«Ά
β¨ NAME β¨
tw68_risc_buffer β and honestly? the original page just leaves it at that. no description. nothing. a mystery. main character energy, truly, she said "figure it out" and dipped π
β¨ SYNOPSIS β¨
int tw68_risc_buffer (struct pci_dev *pci , struct tw68_buf *buf ,
struct scatterlist *sglist , unsigned int top_offset , unsigned int
bottom_offset , unsigned int bpl , unsigned int padding , unsigned int
lines );
that's the whole vibe right there β one int, and a whooooole lot of arguments. we're gonna go through every single one, don't worry π
β¨ ARGUMENTS β¨
pciβ thestruct pci_dev *, aka the structure holding all the info about the pci slot our device is chilling in. her little home address πbufβ astruct tw68_buf *, and this one carries the info about the memory used for our controller program. the ~paperwork~ basically πsglistβ the scatter-gather list entry. yes bestie, that's the whole description. iconic brevity β¨top_offsetβ the offset within the risc program area for the first odd frame line. odd lines first, she's quirky like that πbottom_offsetβ the offset within the risc program area for the first even frame line. the bottom half of this whole top/bottom situation πΈbplβ number of data bytes per scan line. bytes per line, hence the name, iykyk πpaddingβ number of extra bytes to add at the end of each line. little sprinkle of extra on top πlinesβ number of scan lines. the count. the amount. periodt π¦
β¨ DESCRIPTION β¨
so this routine gets called by tw68-video, okay?
first thing it does: it allocates memory for the dma controller "program" π
and then β the fun part β it fills that memory in with the appropriate "instructions" β¨π₯
like, that's literally it, that's the whole job. allocate, then fill. she's efficient, we stan π
β¨ SEE ALSO β¨
- the kernel file
./drivers/media/pci/tw68/tw68-risc.c tw68_risc_field(9)
go read those too, bestie, don't leave them hanging π«Ά
and that's the page!! mwah π this whole thing comes to you from ./drivers/media/pci/tw68, dated October 2026 β so like, mark your calendar bestie, that's the source, the version, and the date all in one cute little bow π byeeee π
π¦ 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