drm_mode_destroy(9)
β¨ drm_mode_destroy(9) β¨
okay so this is a page from the Kernel API Manual, bestie β it's like the little corner of the docs that lives in ./drivers/gpu/drm and honestly? it's giving cleanup era. π§Ήπ
πΈ NAME πΈ
drm_mode_destroy β remove a mode
like, yeet the mode. it's gone. bye. π
π¦ SYNOPSIS π¦
void drm_mode_destroy (struct drm_device *dev , struct drm_display_mode
*mode );
no return value, no drama β it's void, it just does the thing and dips. β¨
π ARGUMENTS π
devβ the DRM device π₯οΈ (your main character, basically)modeβ the mode to remove ποΈ (the one getting the goodbye speech)
π DESCRIPTION π
so what actually happens here? two things, in order, no skips:
- it releases the mode's unique ID β gotta free up that identifier so nobody's out here thinking the mode still exists
- then it frees the
modestructure itself usingkfreeπ«Ά
that's it. that's the whole function. it's short but it ate. β¨
π SEE ALSO π
the kernel file this lives in, for when you want the receipts:
./drivers/gpu/drm/drm_modes.c
and the whole friend group π (yes, all of them, no we are not skipping anyone):
drm_mode_debug_printmodeline(9)drm_mode_create(9)drm_mode_probed_add(9)drm_analog_tv_mode(9)drm_cvt_mode(9)drm_gtf_mode_complex(9)drm_gtf_mode(9)drm_display_mode_from_videomode(9)drm_display_mode_to_videomode(9)drm_bus_flags_from_videomode(9)of_get_drm_display_mode(9)of_get_drm_panel_display_mode(9)drm_mode_set_name(9)drm_mode_vrefresh(9)drm_mode_get_hv_timing(9)drm_mode_set_crtcinfo(9)drm_mode_copy(9)drm_mode_init(9)drm_mode_duplicate(9)drm_mode_match(9)drm_mode_equal(9)drm_mode_equal_no_clocks(9)drm_mode_equal_no_clocks_no_stereo(9)drm_mode_validate_driver(9)drm_mode_validate_size(9)drm_mode_validate_ycbcr420(9)drm_mode_prune_invalid(9)drm_mode_compare(9)drm_mode_sort(9)drm_connector_list_update(9)drm_mode_parse_command_line_for_connector(9)drm_mode_create_from_cmdline_mode(9)drm_mode_convert_to_umode(9)drm_mode_convert_umode(9)drm_mode_is_420_only(9)drm_mode_is_420_also(9)drm_mode_is_420(9)drm_set_preferred_mode(9)
and that's the page!! π«Ά this dropped October 2026, brought to you from ./drivers/gpu/drm β mwah, slay, see u in the source tree 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