drm_of_crtc_port_mask(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 πŸ”₯

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