vb2_plane_cookie(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so this is the Kernel API Manual page for vb2_plane_cookie β€” section 9, bestie, and it's literally about handing out allocator cookies for buffer planes. no cap πŸ“

🌸 NAME 🌸

vb2_plane_cookie β€” return allocator specific cookie for the given plane. yes bestie that's the whole name vibe, and it ate πŸ’…

✨ SYNOPSIS ✨

void * vb2_plane_cookie (struct vb2_buffer *vb , unsigned int plane_no
       );

πŸ’¬ ARGUMENTS πŸ’¬

  • vb β€” pointer to struct vb2_buffer to which the plane in question belongs to. like, the buffer that owns the plane you're asking about 🫢
  • plane_no β€” plane number for which the cookie is to be returned. which plane's cookie are we grabbing? this number, bestie πŸŽ€

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea β˜•: this function returns an allocator specific cookie for a given plane if it's available, and NULL otherwise. that's the whole plot. 😭

The allocator should provide some simple static inline function, which would convert this cookie to the allocator specific type that can be used directly by the driver to access the buffer. this can be for example physical address, pointer to scatter list or IOMMU mapping. lowkey iconic examples, ngl 🌈

πŸ‘‘ SEE ALSO πŸ‘‘

okay bestie, the whole entourage is here β€” no skipping, periodt πŸ’–


that's the whole page, bestie 🫢 source/version is ./include/media, date is October 2026, and the manual name is vb2_plane_cookie(9) β€” slay πŸŽ€

πŸ“¦ where this page comes from