STRUCT HVA_STREAM(9)
okay so bestie, welcome to the struct hva_stream(9) page from the Kernel API Manual β this is the hva stream buffer (capture) struct, and we're about to go through every member like it's a group-chat roll call. no cap. π«Ά
π NAME π
struct hva_stream β hva stream buffer (capture). It's giving "the buffer struct for capture," and that's the whole vibe. π
β¨ SYNOPSIS β¨
Here's the struct in all its glory β copy it exactly, bestie:
struct hva_stream {
struct vb2_v4l2_buffer vbuf;
struct list_head list;
dma_addr_t paddr;
void *vaddr;
bool prepared;
unsigned int size;
unsigned int bytesused;
};
π Members π
vbufβ the video buffer information for V4L2. Literally the V4L2 buffer info, iconic.listβ the V4L2 m2m list that the frame belongs to. Think "which group chat is this frame in?" but make it V4L2 m2m.paddrβ the physical address, aka the one for hardware.vaddrβ the virtual address, aka the one the kernel can read/write.preparedβtrueifvaddr/paddrare resolved. That's it, that's the flag.sizeβ the size of the buffer in bytes. Numbers stay numbers.bytesusedβ the number of bytes occupied by data in the buffer. Data occupancy check, slay.
π₯ SEE ALSO π₯
Kernel file: ./drivers/media/platform/st/sti/hva/hva.h
struct hva_frameinfo(9)struct hva_streaminfo(9)struct hva_controls(9)struct hva_frame(9)struct hva_ctx_dbg(9)struct hva_ctx(9)struct hva_dev_dbg(9)struct hva_dev(9)struct hva_enc(9)
kisses π β source/version: ./drivers/media/platform/st/st..., dated October 2026. periodt. π§
π¦ 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