drm_mipi_db...r_mode_valid(9)
π drm_mipi_dbi_crtc_helper_mode_valid β¨
okay so bestie, welcome to the Kernel API Manual π β this little cutie lives in the DRM/MIPI corner of the kernel and honestly it's giving "small function, big responsibilities" energy. let's get into it π«Ά
πΈ NAME πΈ
drm_mipi_dbi_crtc_helper_mode_valid β the MIPI DBI mode-valid helper π
like, that's literally its whole job. it checks if a mode is valid. iconic behavior honestly π
β¨ SYNOPSIS β¨
enum drm_mode_status drm_mipi_dbi_crtc_helper_mode_valid (struct
drm_crtc *crtc , const struct drm_display_mode *mode );
no cap, that's the whole signature. it hands you back an enum drm_mode_status β so you get a lil verdict about the mode, not just a yes/no vibe π
π¦ ARGUMENTS π¦
crtcβ the CRTC π (yes queen, that one)modeβ the mode you wanna test π§ like, the one you're putting on the vibe check chopping block
π DESCRIPTION π
so what it does: this function validates a given display mode against the MIPI DBI's hardware display β¨ it's literally the vibe check for modes against the actual panel, fr fr.
and bestie, here's the slay part β drivers can use this as their struct drm_crtc_helper_funcs.mode_valid callback π so you don't gotta write your own. just point the callback at this and you're done. main character energy.
π₯ SEE ALSO π₯
okay this list is long but every single one of these deserves a mention, no skipping, periodt π
- Kernel file
./drivers/gpu/drm/drm_mipi_dbi.coverview(9) mipi_dbi_command_read(9)mipi_dbi_command_buf(9)mipi_dbi_buf_copy(9)drm_mipi_dbi_plane_helper_atomic_check(9)drm_mipi_dbi_plane_helper_atomic_update(9)drm_mipi_dbi_crtc_helper_atomic_check(9)drm_mipi_dbi_crtc_helper_atomic_disable(9)drm_mipi_dbi_connector_helper_get_modes(9)drm_mipi_dbi_dev_init(9)mipi_dbi_hw_reset(9)mipi_dbi_display_is_on(9)mipi_dbi_poweron_reset(9)mipi_dbi_poweron_conditional_reset(9)mipi_dbi_spi_cmd_max_speed(9)mipi_dbi_spi_init(9)mipi_dbi_spi_transfer(9)mipi_dbi_debugfs_init(9)
ngl that's a whole friend group and they all ate π go read them too, iykyk π
lowkey a reminder babe: mode_valid is a callback β you're registering this function, not calling it yourself in normal driver flow. the DRM core comes knocking π
and that's the page!! mwah π this one's from ./drivers/gpu/drm, dated October 2026 β stay hydrated, keep your modes valid, and remember: the kernel loves you back π«ΆπΈπ
π¦ 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