STRUCT DRM_MODE_GET_LEASE(9)
π struct drm_mode_get_lease(9) π
okay bestie, welcome to the Kernel API Manual β yes that's the manual name, and yes this page is a whole little struct, and no it is not boring, i promise π«Ά
πΈ NAME πΈ
struct drm_mode_get_lease β Get Lease β¨ (that's it. that's the whole name. short, sweet, iconic.)
π SYNOPSIS π
like, here's the vibe, literally copied character for character so u don't have to trust my memory:
struct drm_mode_get_lease {
__u32 count_objects;
__u32 pad;
__u64 objects_ptr;
};
three members. one struct. the way that it just sits there being useful π
π¦ Members π¦
okay so these are the actual fields, and ngl they all pull their weight:
count_objectsβ Number of leased objects. π
and listen, this one is doing double duty, lowkey main character energy: on input it gives the length of the array. on output it gives the total number. no more than the input number will be written back, so u can do two calls β one to get the size, then one to get the data. that's the trick, iykyk. β¨
padβ Padding. literally just vibes and alignment, bestie. it is padding. that's the job. respect it πobjects_ptrβ Pointer to objects. π
specifically a Pointer to __u32 array of object ids. so like, the actual goods live over there, this is just the address of the party π₯
π Description π
Get leased objects. π
that's the whole description. short king. it gets the leased objects, and it does it slayfully. periodt π
β SEE ALSO β
okay this list is long but every single one is here, no cap, no skipping, we are not leaving anyone out of the group chat:
- 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_list_lessees(9)struct drm_mode_revoke_lease(9)struct drm_mode_rect(9)struct drm_mode_closefb(9)
like... that's the whole extended universe right there π§π«
ok and before u go β this page lives in ./include/uapi/drm, and it's dated October 2026, so if ur reading this in the future, hi, hope the leases are leased π
go get those object ids bestie, ur gonna do amazing π«Άβ¨π
π¦ 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