drm_helper_...ed_functions(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so this is the drm_helper_...ed_functions(9) page from the Kernel API Manual, and the function we're hyping up is drm_helper_disable_unused_functions β€” its whole thing is disable unused objects. that's the name, that's the game. πŸ’…


🌸 SYNOPSIS 🌸

void drm_helper_disable_unused_functions (struct drm_device *dev );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the DRM device. that's it, that's the whole argument list, and honestly? iconic. πŸ’–

✨ DESCRIPTION ✨

okay so picture this: drm_helper_disable_unused_functions literally walks through the entire mode setting configuration of dev. it removes any CRTC links of unused encoders, and it removes encoder links of disconnected connectors. then it disables all unused encoders and CRTCs β€” either by calling their disable callback if available, or by calling their dpms callback with DRM_MODE_DPMS_OFF. cleanup era fr fr. 🧹✨


πŸ’€ NOTE πŸ’€

this function is part of the legacy modeset helper library, and it will cause major confusion with atomic drivers. why? because atomic helpers guarantee to never call ->disable hooks on a disabled function, or ->enable hooks on an enabled functions. drm_helper_disable_unused_functions on the other hand throws such guarantees into the wind and calls disable hooks unconditionally on unused functions. not me being dramatic β€” that's literally the note, bestie. πŸ˜­πŸ’€

πŸ”₯ SEE ALSO πŸ”₯


made with love from ./drivers/gpu/drm, dated October 2026 β€” that's the source/version + date sign-off, bestie. πŸ«ΆπŸ’–πŸŽ€

πŸ“¦ where this page comes from