drm_of_crtc_port_mask(9)
β¨ drm_of_crtc_port_mask β¨
okay bestie, so this one is a little kernel function from the DRM corner of the tree, and honestly? it's giving "small but mighty" π Let's get into it.
This is a page from the Kernel API Manual β yes, the fancy kernel docs, we love to see it π
πΈ NAME πΈ
drm_of_crtc_port_mask β literally just: find the mask of a registered CRTC by port OF node. that's the whole vibe, no cap.
π¦ SYNOPSIS π¦
uint32_t drm_of_crtc_port_mask (struct drm_device *dev , struct
device_node *port );
look at that signature. clean. iconic. returns a uint32_t, takes two pointers, we move. β¨
π ARGUMENTS π
devβ the DRM device π₯οΈ like, the whole graphics device situation.portβ the port OF node π³ the device-tree node for the port in question.
π DESCRIPTION π
so the way this works: you hand it a port OF node, and it gives you back the possible mask of the corresponding CRTC β the one sitting inside the device's list of CRTCs. like a little lookup, but make it device-tree π
and if it's not found? it returns zero. that's it, that's the fail state. not found β zero, fr fr. don't overthink it π«Ά
heads up bestie: zero is your "nope, didn't find it" signal here, so don't go treating it like a valid mask, iykyk π
π₯ SEE ALSO π₯
- Kernel file
./drivers/gpu/drm/drm_of.coverview(9) drm_of_find_possible_crtcs(9)drm_of_component_match_add(9)drm_of_component_probe(9)drm_of_get_panel_orientation(9)drm_of_find_panel_or_bridge(9)drm_of_lvds_get_dual_link_pixel_order(9)drm_of_lvds_get_dual_link_pixel_order_sink(9)drm_of_lvds_get_data_mapping(9)drm_of_get_data_lanes_count(9)drm_of_get_data_lanes_count_ep(9)drm_of_get_data_lanes_count_remote(9)drm_of_get_dsi_bus(9)
that's a whole friend group right there, go say hi to all of them ππ
and that's the page!! mwah π this beauty lives in ./drivers/gpu/drm, the docs are dated October 2026, and it's all from the Kernel API Manual β go off, kernel docs, you ate πβ¨
π¦ 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