snd_sgbuf_get_chunk_size(9)
β¨ NAME β¨
okay bestie, welcome to the Kernel API Manual entry for snd_sgbuf_get_chunk_size(9) π«Ά. This icon computes the max chunk size with continuous pages on an sg-buffer β yes, it's giving buffer math realness, and we're obsessed π
β¨.
π¦ SYNOPSIS π¦
unsigned int snd_sgbuf_get_chunk_size (struct snd_dma_buffer *dmab ,
unsigned int ofs , unsigned int size );
π ARGUMENTS π
dmabβ buffer allocation information. It's basically the buffer's receipts, bestie π§Ύ.ofsβ offset in the ring buffer. Yes, the ring buffer β not a jewelry ring, sadly π.sizeβ the requested size. That's the size you're asking for, periodt πΈ.
π« RETURN π«
it returns the chunk size. That's it, that's the tea ββ¨.
π SEE ALSO π
Kernel file ./sound/core/memalloc.c is the spot, and these are the related functions, no cap:
snd_dma_alloc_dir_pages(9)snd_dma_alloc_pages_fallback(9)snd_dma_free_pages(9)snd_devm_alloc_dir_pages(9)snd_dma_buffer_mmap(9)snd_dma_buffer_sync(9)snd_sgbuf_get_addr(9)snd_sgbuf_get_page(9)
mwah π β this page lives under source ./sound/core, dated October 2026, with full Kernel API Manual energy. bye bestie, go get that chunk size πβ¨
π¦ 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