STRUCT HVA_STREAM(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 β€” true if vaddr/paddr are 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