STRUCT DRM_PRINT_ITERATOR(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 be NULL if you're using drm_printer_coredump just 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