snd_sgbuf_get_page(9)
π snd_sgbuf_get_page(9) π
okay bestie, we're in the Kernel API Manual and this function is literally here to return the physical page at the corresponding offset. β¨ super straightforward, no cap.
πΈ SYNOPSIS πΈ
struct page * snd_sgbuf_get_page (struct snd_dma_buffer *dmab , size_t offset );
π ARGUMENTS π
dmabβ buffer allocation information, aka the buffer's little info packet π«Άoffsetβ offset in the ring buffer, aka where you're pointing inside it π
π RETURN π
It gives you back the page pointer β that's the whole return value, periodt. π¦
π¦ SEE ALSO π¦
Kernel file ./sound/core/memalloc.c, plus these absolute icons:
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_chunk_size(9)
mwah π this page lives in ./sound/core and is dated October 2026 β Kernel API Manual energy forever, bestie π
π¦ 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