drmm_kcalloc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– drmm_kcalloc(9) πŸ’–

okay so bestie, this is the drmm_kcalloc(9) page from the Kernel API Manual, and it’s literally all about a &drm_device-managed kcalloc() situation. stay with me, it’s cute πŸŽ€


✨ NAME ✨

drmm_kcalloc β€” a &drm_device managed kcalloc() πŸ¦‹

🌸 SYNOPSIS 🌸

void * drmm_kcalloc (struct drm_device *dev , size_t n , size_t size ,
       gfp_t flags );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” DRM device πŸ’–
  • n β€” number of array elements to allocate
  • size β€” size of array member
  • flags β€” GFP allocation flags

πŸ”₯ DESCRIPTION πŸ”₯

okay so drmm_kcalloc is the drm_device-managed version of kcalloc. the allocated memory is automatically freed on the final drm_dev_put, and it works exactly like a memory allocation obtained by drmm_kmalloc. no cap, that’s the whole vibe πŸ’…

πŸŽ€ SEE ALSO πŸŽ€

the kernel file is ./include/drm/drm_managed.h β€” go peek, bestie 🫢


mwah, that’s the page πŸ’– source/version: ./include/drm Β· date: October 2026 Β· page: drmm_kcalloc(9) ✨

πŸ“¦ where this page comes from