STRUCT KOMEDA_PLANE_STATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’œ struct komeda_plane_state(9) β€” Kernel API Manual, bestie edition πŸ’œ

okay so this is a page from the Kernel API Manual, literally all about struct komeda_plane_state, and tbh it's short but it's iconic. let's get into it 🫢


✨ NAME ✨

struct komeda_plane_state β€” yes, that's the whole name, no subtitle, the manpage just leaves it there like a mystery. ngl, mysterious main character energy πŸ”₯


🌸 SYNOPSIS 🌸

here's the struct, bestie, copied exactly because we do not mess with code:

struct komeda_plane_state {
    struct drm_plane_state base;
    struct list_head zlist_node;
    u8 layer_split : 1;
 };

πŸŽ€ Members πŸŽ€

girl there are three members and each one is serving a purpose:

  • base β€” a drm_plane_state. it's the foundation, the blueprint, the base of the whole situation πŸ’…
  • zlist_node β€” the zorder list node. it's how this plane keeps its place in the zorder list, iykyk πŸ‘‘
  • layer_split β€” an on/off layer_split. the actual field is a u8 layer_split : 1 bitfield, so it's literally a one-bit vibe check πŸ¦‹

🌈 Description 🌈

okay so the description is where it gets good. the plane_state can be split into two data flows β€” left and right 😭 β€” and then it's handled by two layers: komeda_plane.layer and komeda_plane.layer.right. that's it, that's the whole flex. two layers, one plane state, periodt πŸ’€βœ¨


πŸ’– SEE ALSO πŸ’–

go read these too, no cap, they're all connected:

  • Kernel file ./drivers/gpu/drm/arm/display/komeda/komeda_kms.h β€” that's where the struct lives 🧚
  • struct komeda_plane(9)
  • struct komeda_wb_connector(9)
  • struct komeda_crtc(9)
  • struct komeda_crtc_state(9)

heads up bestie: that struct in the SYNOPSIS has that little extra space before the closing brace β€” that's exactly how it's printed here, so keep it cute and keep it as-is πŸ™ˆ

okay and the cute sign-off: this page comes from ./drivers/gpu/drm/arm/display/... and the date on it is October 2026, and it's literally titled struct komeda_plane_state(9) all over again at the bottom πŸ’œ go read the kernel source, slay πŸŽ€

πŸ“¦ where this page comes from