STRUCT DRM_MODE_LIST_LESSEES(9)
β¨ 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__u64array 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:
overview(9)struct drm_mode_modeinfo(9)struct drm_mode_get_plane(9)struct drm_mode_get_connector(9)struct drm_mode_property_enum(9)struct drm_mode_get_property(9)struct drm_mode_fb_cmd2(9)enum drm_colorop_type(9)enum drm_colorop_lut3d_interpolation_type(9)enum drm_colorop_lut1d_interpolation_type(9)struct drm_plane_size_hint(9)struct hdr_metadata_infoframe(9)struct hdr_output_metadata(9)DRM_MODE_PAGE_FLIP_EVENT(9)DRM_MODE_PAGE_FLIP_ASYNC(9)DRM_MODE_PAGE_FLIP_FLAGS(9)struct drm_mode_create_dumb(9)DRM_MODE_ATOMIC_TEST_ONLY(9)DRM_MODE_ATOMIC_NONBLOCK(9)DRM_MODE_ATOMIC_ALLOW_MODESET(9)DRM_MODE_ATOMIC_FLAGS(9)struct drm_mode_create_blob(9)struct drm_mode_destroy_blob(9)struct drm_mode_create_lease(9)struct drm_mode_get_lease(9)struct drm_mode_revoke_lease(9)struct drm_mode_rect(9)struct drm_mode_closefb(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms