dev_coredump_put(9)
π dev_coredump_put(9) π
okay so this is a page from the Kernel API Manual, and it's literally about cleaning up after a device has a whole meltdown. bestie, it's the cleanup crew of kernel coredumps π§Ήβ¨
πΈ NAME πΈ
dev_coredump_put β remove device coredump ποΈ
Like, it yeets the coredump. That's the whole job. Iconic honestly.
β¨ SYNOPSIS β¨
void dev_coredump_put (struct device *dev );
one function, one argument, no drama. the way that signature is just sitting there being all simple π«Ά
π ARGUMENTS π
devβ thestruct devicefor the crashed device π like yes, the one that crashed. that device's struct. the main character of this whole situation.
π¦ DESCRIPTION π¦
okay so here's the tea β dev_coredump_put removes the coredump, if it exists, for a given device from the file system β and it frees its associated data. and if there's no coredump? it literally does nothing. no cap. just vibes and silence π
it's useful for modules that do not want to keep the coredump available after their unload. so like, if your module is heading out the door, this is how you don't leave a coredump just lying around being messy. clean exit only, periodt π β¨
π SEE ALSO π
- Kernel file
./drivers/base/devcoredump.c dev_coredumpv(9)devcd_free_sgtable(9)devcd_read_from_sgtable(9)dev_coredumpm_timeout(9)dev_coredumpsg(9)
the whole squad fr fr, go read them too π«Άπ
and that's the page bestie!! π this little gem lives over in ./drivers/base, dated October 2026 β so like, she's from the future and still slaying ππ bye mwah π
π¦ 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