dev_coredumpm_timeout(9)
π dev_coredumpm_timeout(9) β the glow-up your kernel coredumps deserve β¨
okay so bestie, this is one of those Kernel API Manual pages (yes, from dev_coredumpm_timeout(9)) and honestly? it's giving "I make coredumps and I make them fabulous." let's get into it π
β¨ NAME β¨
dev_coredumpm_timeout β literally creates a device coredump with read/free methods and a custom timeout. she's extra like that πββοΈ
π¦ SYNOPSIS π¦
void dev_coredumpm_timeout (struct device *dev , struct module *owner ,
void *data , size_t datalen , gfp_t gfp , ssize_t (*read)(char *buffer,
loff_t offset, size_t count, void *data, size_t datalen) , void
(*free)(void *data) , unsigned long timeout );
like, look at all those parameters. she's high-maintenance but worth it, fr fr π₯
π ARGUMENTS π
devβ thestruct devicefor the crashed device. poor thing, it crashed but at least it's getting a coredump out of it πownerβ the module that contains theread/freefunctions, useTHIS_MODULE. no cap, that's the vibe πdataβ data cookie for theread/freefunctions. like a little treat passed around, iykyk πdatalenβ length of the data. gotta know how much we're working with β¨gfpβ allocation flags. the classic GFP flags, no surprises here π¦readβ function to read from the given buffer. she reads, bestie πfreeβ function to free the given buffer. clean up, clean up, everybody everywhere π§Ήtimeoutβ time in jiffies to remove coredump. because even coredumps need a departure era π
πΈ DESCRIPTION πΈ
so basically: this creates a new device coredump for the given device. icon behavior honestly π
if a previous one hasn't been read yet? the new coredump is discarded. sorry not sorry, that's just how it is π¬
the data lifetime is determined by the device coredump framework, and when it's no longer needed the free function gets called to free the data. closure, we love to see it π«Ά
π SEE ALSO π
- Kernel file
./drivers/base/devcoredump.c dev_coredumpv(9)devcd_free_sgtable(9)devcd_read_from_sgtable(9)dev_coredump_put(9)dev_coredumpsg(9)
go read those too, bestie, they're all part of the same friend group π
and that's the tea! this page came from ./drivers/base, dated October 2026, and it's the dev_coredumpm_timeout(9) manual β slay, periodt, and happy coredumping π
β¨π
π¦ 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