STRUCT DRM_MODE_LIST_LESSEES(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct drm_mode_list_lessees πŸ’…

okay so we're deep in the Kernel API Manual (section 9, bestie, we're in the kernel now) and today's main character is struct drm_mode_list_lessees β€” literally just a little struct whose whole job is listing lessees. iconic behavior, honestly.


🌸 NAME 🌸

struct drm_mode_list_lessees β€” List lessees ✨


πŸŽ€ SYNOPSIS πŸŽ€

struct drm_mode_list_lessees {
    __u32 count_lessees;
    __u32 pad;
    __u64 lessees_ptr;
 };

ok so it's giving very small struct, very demure, three fields, no cap. let's break it down field by field 🫢


πŸ¦‹ Members πŸ¦‹

  • count_lessees β€” the number of lessees. and the way this is a two-way street?? on input it gives the length of the array, and on output it gives the total number. no more than the input number will be written back, so you can totally do the classic two-call thing: one call to get the size, then another call to get the actual data. lowkey genius ✨
  • pad β€” padding. that's it. that's the whole field. it's there, it's padded, it's doing its thing πŸŽ€
  • lessees_ptr β€” pointer to lessees. more specifically, a pointer to a __u64 array of lessee ids. so like, an array of ids, pointed at. you got this πŸ’–

πŸ‘‘ Description πŸ‘‘

List lesses from a drm_master. yes bestie, "lesses" β€” that's what the page says, and we are not correcting it, we're just vibing with it. (it's lessees. we know it's lessees. the manpage knows it's lessees. moving on πŸ’€)


🌈 SEE ALSO 🌈

ok this list is long, get comfy, grab a snack πŸ“ β€” it's all from the Kernel file ./include/uapi/drm/drm_mode.h:

like, the whole drm_mode.h friend group showed up. we love a supportive cast πŸ‘‘


ngl if you're here you probably want the lease trio (create_lease, get_lease, revoke_lease) β€” this struct is the "who even has a lease rn" one. go read those, they're right there in SEE ALSO, iykyk 🧚

and that's the page!! source file lives at ./include/uapi/drm, version date October 2026 β€” so like, future-dated slay πŸ’œ mwah, go list some lessees, bestie πŸ’…βœ¨

πŸ“¦ where this page comes from