stack_depot_snprint(9)
β¨ NAME β¨
bestie, meet stack_depot_snprint from the Kernel API Manual β she prints a stack trace from stack depot into a buffer. literally thatβs the whole assignment, and she ate. π
π SYNOPSIS π
int stack_depot_snprint (depot_stack_handle_t handle , char *buf ,
size_t size , int spaces );
πΈ ARGUMENTS πΈ
handleβ the Stack depot handle returned fromstack_depot_save. iykyk. π«Άbufβ pointer to the print buffer, aka where the text goes. β¨sizeβ size of the print buffer. no cap, size matters here. πspacesβ number of leading spaces to print. yes, itβs giving indentation. π
β RETURN β
Number of bytes printed. thatβs the return value, bestie β bytes printed, periodt. π₯
π¦ SEE ALSO π¦
- Kernel file
./include/linux/stackdepot.h stack_depot_save_flags(9)stack_depot_save(9)__stack_depot_get_stack_record(9)stack_depot_fetch(9)stack_depot_print(9)stack_depot_put(9)stack_depot_set_extra_bits(9)stack_depot_get_extra_bits(9)
xoxo, this pageβs source/version is ./include/linux, dated October 2026, and itβs still serving stack_depot_snprint(9) realness β 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