STRUCT DPU_ENCODER_PHYS_WB(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct dpu_encoder_phys_wb(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” yes, the Kernel API Manual, and today's main character is struct dpu_encoder_phys_wb. sit down, hydrate, and let's get into it 🫢


✨ NAME ✨

struct dpu_encoder_phys_wb β€” a sub-class of dpu_encoder_phys that literally exists to handle command mode specific operations. it's giving "specialized child struct" energy πŸ‘‘


🌸 SYNOPSIS 🌸

struct dpu_encoder_phys_wb {
    struct dpu_encoder_phys base;
    atomic_t wbirq_refcount;
    int wb_done_timeout_cnt;
    struct dpu_hw_wb_cfg wb_cfg;
    struct drm_writeback_connector *wb_conn;
    struct drm_writeback_job *wb_job;
    struct dpu_hw_fmt_layout dest;
};

no cap, that's the whole shape of her πŸ’…


πŸŽ€ Members πŸŽ€

  • base β€” the baseclass physical encoder structure. she inherited it from her mother dpu_encoder_phys, iconic lineage fr πŸ’œ
  • wbirq_refcount β€” reference count of writeback interrupt. an atomic_t, so she's thread-safe and unbothered ✨
  • wb_done_timeout_cnt β€” the number of wb done irq timeout errors. a little counter of sadness 😭 every time writeback doesn't finish in time, this goes up
  • wb_cfg β€” the writeback block config, used to store fb related details. the struct dpu_hw_wb_cfg holding the receipts 🧾
  • wb_conn β€” backpointer to the writeback connector (struct drm_writeback_connector *). she knows where she came from πŸ¦‹
  • wb_job β€” backpointer to the current writeback job (struct drm_writeback_job *). note "current" β€” the job in flight right now, main character energy only πŸ”₯
  • dest β€” the struct dpu_hw_fmt_layout dpu buffer layout for the current writeback output buffer. where the pixels are actually going πŸ“¦

🌈 SEE ALSO 🌈

peep these, iykyk πŸ‘€

  • Kernel file ./drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys.h
  • enum dpu_enc_split_role(9)
  • enum dpu_enc_enable_state(9)
  • struct dpu_encoder_phys_ops(9)
  • enum dpu_intr_idx(9)
  • struct dpu_encoder_phys(9)
  • struct dpu_encoder_phys_cmd(9)
  • struct dpu_enc_phys_init_params(9)

πŸ’€ reminder bestie: this is a kernel API doc β€” the signatures, types, and names above are literal. copy them exactly, don't get creative with the C, only with the vibes.

and that's the whole page, periodt πŸŽ€ so anyway β€” this little love letter lives in ./drivers/gpu/drm/msm/disp/dpu1, dated October 2026, and it's filed under struct dpu_encoder_phys_wb(9). go read the header file, slay, bye bestie πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from