STRUCT VP9_REF_CNT_BUF(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

hii bestie πŸ’– you're reading the Kernel API Manual page for struct vp9_ref_cnt_buf(9), and it's a short one but it's lowkey iconic for reference buffer info. let's get into it πŸŽ€

✨ NAME ✨

struct vp9_ref_cnt_buf β€” contains reference buffer information. that's the whole name, and honestly it's giving β€œI hold the reference-buffer receipts” 🌸

πŸ¦‹ SYNOPSIS πŸ¦‹

ok so the struct is literally this, no cap:

struct vp9_ref_cnt_buf {
    struct vp9_fb_info buf;
    unsigned int ref_cnt;
 };

🫢 Members 🫢

two members, both main characters πŸ’…

  • buf β€” referenced frame buffer. it's the referenced frame buffer, periodt 🫢
  • ref_cnt β€” referenced frame buffer's reference count. When reference count=0, remove it from reference list. so yeah, when reference count=0, remove it from reference list β€” that's the rule for the reference list πŸ’€βœ¨

🌈 SEE ALSO 🌈

go look at these besties too, iykyk πŸ‘‘

  • Kernel file β€” ./drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_if.c
  • struct vp9_dram_buf(9), struct vp9_fb_info(9), struct vp9_ref_buf(9), struct vp9_sf_ref_fb(9)

and that's the whole page!! the footer's source/version was ./drivers/media/platform/media... and it was dated October 2026 on the struct vp9_ref_cnt_buf(9) page β€” mwah πŸ’‹πŸ’–

πŸ“¦ where this page comes from