snd_sgbuf_get_chunk_size(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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:


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