DRM_MODE_RES_MM(9)
π DRM_MODE_RES_MM(9) π
okay so welcome to the Kernel API Manual, bestie β this is the page for DRM_MODE_RES_MM(9), and it is literally the little helper that calculates the display size from resolution and DPI. β¨ Itβs giving βsmall function, clear job,β and we respect that. π«Ά
πΈ NAME πΈ
DRM_MODE_RES_MM β calculates the display size from resolution and DPI. periodt. π
π SYNOPSIS π
the whole call is right here, no cap:
DRM_MODE_RES_MM (res , dpi );
π¦ ARGUMENTS π¦
okay so it takes two arguments, and neither one is mysterious:
resβ the resolution, in pixel. like, thatβs the pixel situation. πdpiβ the number of dots per inch. literally the dots-per-inch number. π«
π SEE ALSO π
if youβre going on a lil kernel adventure, these are the neighbors, bestie:
- Kernel file
./include/drm/drm_modes.h enum drm_mode_status(9)DRM_MODE_INIT(9)DRM_SIMPLE_MODE(9)struct drm_display_mode(9)DRM_MODE_FMT(9)DRM_MODE_ARG(9)drm_mode_is_stereo(9)
mwah π thatβs the whole page β it comes from ./include/drm, itβs dated October 2026, and itβs the DRM_MODE_RES_MM(9) manual page. slay. π
π¦ 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