dev_coredumpm_timeout(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” the struct device for the crashed device. poor thing, it crashed but at least it's getting a coredump out of it πŸ’€
  • owner β€” the module that contains the read/free functions, use THIS_MODULE. no cap, that's the vibe πŸ’…
  • data β€” data cookie for the read/free functions. 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 🌈

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