drm_writeba...l_completion(9)
π drm_writeback_signal_completion(9) β Kernel API Manual π
okay so bestie, buckle up, because this one is from the Kernel API Manual and it's literally the "hey the hardware is done, tell everyone" function π
β¨ NAME β¨
drm_writeback_signal_completion β signal the completion of a writeback job π¦
like, the little bell you ring when the writeback job is officially done, no cap.
πΈ SYNOPSIS πΈ
void drm_writeback_signal_completion (struct drm_writeback_connector
*wb_connector , int status );
that's the whole vibe. void return, cutie β no coming back, no receipts. π
π§ ARGUMENTS π§
wb_connectorβ the writeback connector whose job is complete π like, this is the connector, the main character, the one who just finished.statusβ the status code you're setting in the writebackout_fence.0means success π (yes, zero is the good one here, iconic behaviour).
π₯ DESCRIPTION π₯
so drivers, listen up: you call this to signal the completion of a writeback job you queued earlier. it should be called ASAP after the hardware has finished writing β like, the instant, don't be shy β and it may be called from interrupt context π (yes, from interrupt context, that's not a typo, that's just how it lives).
it is the driver's responsibility to make sure that, for a given connector, the hardware completes writeback jobs in the same order as they are queued. π order matters, periodt. no queue-jumping, no chaos, keep it in line.
π real talk warning: unless the driver is holding its own reference to the framebuffer, it must not be accessed after calling this function. like, do not touch it after. it's gone. respect the boundary π«Ά
See also: drm_writeback_queue_job β¨ (the queuing half of the story, iykyk)
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/drm_writeback.coverview(9) drm_writeback_connector_init(9)__drm_writeback_connector_init(9)drm_writeback_connector_init_with_encoder(9)drm_writeback_connector_cleanup(9)drmm_writeback_connector_init(9)drm_writeback_queue_job(9)
go read all of them, bestie, they're all linked, it's giving a whole ecosystem πΈβ
π mwah, that's the page π from ./drivers/gpu/drm, dated October 2026, in the Kernel API Manual β slay, bye ππ
π¦ 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