STRUCT DRM_PRINT_ITERATOR(9)
π struct drm_print_iterator (from the Kernel API Manual, bestie)
Okay so picture this: it's a little local struct, right, and its whole entire job is to hang out with drm_printer_coredump. That's it. That's the gig. Main character energy but make it supporting cast. π
β¨ NAME
struct drm_print_iterator β a local struct used with drm_printer_coredump. No cap, that's literally the whole vibe check.
πΈ SYNOPSIS
struct drm_print_iterator {
void *data;
ssize_t start;
ssize_t remain;
};
Look at her. Three members. Immaculate. π¦
π Members
dataβ a pointer to the devcoredump output buffer. And yes, she's flexible β this can beNULLif you're usingdrm_printer_coredumpjust to figure out the size of the devcoredump. Iconic "I'm just here to measure" behaviour, we love to see it. β¨startβ the offset within the buffer where writing kicks off. Like where in the group chat you start reading after being offline for 6 hours. πremainβ the number of bytes to write for this iteration. That's the budget, bestie. Spend it wisely. πΈ
π₯ SEE ALSO
Kernel file ./include/drm/drm_print.h: print(9), enum drm_debug_category(9), struct drm_printer(9), drm_vprintf(9), drm_printf_indent(9), drm_coredump_printer(9), drm_coredump_printer_is_full(9), drm_seq_file_printer(9), drm_info_printer(9), drm_dbg_printer(9), drm_err_printer(9), drm_line_printer(9), DRM_DEV_ERROR(9), DRM_DEV_ERROR_RATELIMITED(9), DRM_DEV_DEBUG(9), DRM_DEV_DEBUG_DRIVER(9), DRM_DEV_DEBUG_KMS(9)
Yeah that's a lot of friends. Go say hi. They're all in ./include/drm together, it's giving family reunion. π«Ά
And that's the tea! β This page comes to you straight from ./include/drm, dated October 2026, and it's part of the Kernel API Manual β so when you're deep in a devcoredump at 2am, know that she's out here iterating and slaying. πβ¨ Go read the whole thing, iykyk. π
π¦ 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