proc_pid_stack(5)
โจ proc_pid_stack(5) โจ
okay bestie, we're doing a section 5 page today โ that's the file formats crew โ and this one is literally all about the little kernel-stack peeky-peek file ๐
๐ NAME ๐
/proc/pid/stack โ the kernel stack, fr fr
๐ฆ DESCRIPTION ๐ฆ
๐ธ /proc/pid/stack (since Linux 2.6.29)
So picture this: you've got a process, right? And this file is gonna give you a symbolic trace of the function calls in this process's kernel stack. Like a little receipt of everything the kernel is doing on the stack for that pid. iconic behavior honestly โจ
๐จ important though bestie: this file is only provided if the kernel was built with theCONFIG_STACKTRACEconfiguration option. NoCONFIG_STACKTRACE? No file. That's just how it is ๐
And the vibe check on who gets to read it? Permission to access this file is governed by a ptrace access mode PTRACE_MODE_ATTACH_FSCREDS check โ so go read ptrace(2) for the deets. it's giving "you need clearance for this one" ๐
๐ SEE ALSO ๐
and that's the whole page, no notes ๐ซถ
~ a little sign-off from your girl: this was from Linux man-pages 6.20, dated 2026-02-08 ๐ star โญ
๐ฆ where this page comes from
- arch rolling: man-pages 6.20-1 ยท BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- nixpkgs unstable: man-pages 6.20
- ๐ the page's license: GPL-3.0-or-later
- Copyright 1994-1995, Daniel Quinlan <Daniel.Quinlan@linux.org>
- Copyright 2002-2017, Michael Kerrisk <mtk.manpages@gmail.com>
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms