ENUM SCRUB_TYPE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… enum scrub_type(9) πŸ’…

okay so this is a page straight out of the Kernel API Manual, and honestly? it's a glow-up for memory scrubbing. scrubbing = the thing your RAM does to keep itself from going all crunchy. this enum is basically the personality quiz for "what kind of scrubber does this thing have?" 🧚✨


🌸 NAME 🌸

enum scrub_type β€” scrubbing capabilities. that's it, that's the whole vibe check: what a scrubber can and can't do πŸ’–


✨ SYNOPSIS ✨

enum scrub_type {
    SCRUB_UNKNOWN ,
    SCRUB_NONE ,
    SCRUB_SW_PROG ,
    SCRUB_SW_SRC ,
    SCRUB_SW_PROG_SRC ,
    SCRUB_SW_TUNABLE ,
    SCRUB_HW_PROG ,
    SCRUB_HW_SRC ,
    SCRUB_HW_PROG_SRC ,
    SCRUB_HW_TUNABLE

};

that's the whole squad, bestie β€” ten constants, no cap, and every single one is getting its own moment below πŸ‘‘


πŸŽ€ Constants πŸŽ€

  • SCRUB_UNKNOWN β€” we literally do not know if a scrubber is available. it's giving "no thoughts, head empty" 😭 unknown status, fr fr.
  • SCRUB_NONE β€” no scrubber. at all. none. zero. the void. πŸ’€
  • SCRUB_SW_PROG β€” SW progressive (sequential) scrubbing. software is out here doing the scrubbing in order, one after the other, main character energy πŸ¦‹
  • SCRUB_SW_SRC β€” software scrub only errors. it's software, and it's strictly here for the error cleanup β€” no extras, periodt ✨
  • SCRUB_SW_PROG_SRC β€” progressive software scrub from an error. software again, progressive again, but this time it kicks off from an error 🫢
  • SCRUB_SW_TUNABLE β€” the software scrub frequency is tunable. you can literally adjust how often it happens, lowkey iconic πŸŽ›οΈπŸŒΈ
  • SCRUB_HW_PROG β€” HW progressive (sequential) scrubbing. same sequential deal as its software sibling, except the hardware is the one slaying πŸ’…πŸ”₯
  • SCRUB_HW_SRC β€” hardware scrub only errors. hardware, errors only β€” it knows its lane 🀌
  • SCRUB_HW_PROG_SRC β€” progressive hardware scrub from an error. hardware doing the progressive thing, triggered from an error, no notes πŸ‘‘
  • SCRUB_HW_TUNABLE β€” the hardware scrub frequency is tunable. yes, the hardware one is adjustable too. we love options 🌈

πŸ” SEE ALSO πŸ”

these live in the kernel file ./include/linux/edac.h, and they're all mutuals bestie πŸ’œ:

  • enum dev_type(9)
  • enum hw_event_mc_err_type(9)
  • enum mem_type(9)
  • enum edac_type(9)
  • enum edac_mc_layer_type(9)
  • struct edac_mc_layer(9)
  • struct rank_info(9)
  • struct edac_raw_error_desc(9)
  • edac_get_dimm(9)
  • struct edac_scrub_ops(9)
  • struct edac_ecs_ops(9)
  • struct edac_mem_repair_ops(9)

okay that's the whole page!! πŸ“ come find me in ./include/linux β€” this one's from October 2026, mwah πŸ’‹πŸ’–

πŸ“¦ where this page comes from