devcd_free_sgtable(9)
π NAME π
devcd_free_sgtable β okay so this one frees, like, all the memory of the scatterlist table you hand it (i.e. both the pages and the scatterlist instances) β¨ no crumbs left, we love a thorough queen π
πΈ SYNOPSIS πΈ
void devcd_free_sgtable (void *data );
π¦ ARGUMENTS π¦
dataβ pointer to thesg_tableyou want to free π«Ά literally just hand it over, bestie
π NOTE π
okay so listen closely because this is the part where people mess up π if two tables were allocated with devcd_alloc_sgtable and then chained using the sg_chain function, then that function should be called only once on the chained table. once. one time. that's it. not twice, not "just to be safe" β once π
β SEE ALSO β
- Kernel file
./drivers/base/devcoredump.c dev_coredumpv(9)devcd_read_from_sgtable(9)dev_coredump_put(9)dev_coredumpm_timeout(9)dev_coredumpsg(9)
go read the source, iykyk π₯π
and that's the whole vibe ππ¦πΈ this little icon lives in ./drivers/base, brought to you by the October 2026 release β mwah, devcd_free_sgtable(9) out π
β¨
π¦ 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