dev_coredumpsg(9)
β¨ dev_coredumpsg(9) β¨
okay bestie, welcome to the Kernel API Manual, section 9 β yes, the kernel docs can be cute too π
This one is all about dev_coredumpsg, and it's giving "device coredump but make it scatterlist" energy πΈ
π NAME π
dev_coredumpsg β create a device coredump that uses a scatterlist as its data parameter π
π¦ SYNOPSIS π¦
void dev_coredumpsg (struct device *dev , struct scatterlist *table ,
size_t datalen , gfp_t gfp );
π ARGUMENTS π
devβ thestruct devicefor the crashed device π like, the device that had a whole moment and needs its coredump collected.tableβ the dump data π¦ yes, the actual data, living in a scatterlist.datalenβ length of the data π exactly how much data we're working with.gfpβ allocation flags π§ the flags used when allocating, bestie.
π₯ DESCRIPTION π₯
This makes a brand-new device coredump for the device you passed in β¨
Here's the tea: if a previous coredump hasn't been read yet, the new coredump gets discarded. no cap, it just gets thrown away π
The data's lifetime is handled by the device coredump framework β it's the main character here π β and when the data is no longer needed, the framework will free it. so you don't have to do the cleanup yourself, periodt π
π 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_coredumpm_timeout(9)
and that's the whole vibe, bestie π«Ά this page lives under ./drivers/base and it's dated October 2026 β iconic, honestly βπ
π¦ 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