FUNCTION::INDENT_DEPTH(3stap)

πŸ’– function::indent_depth πŸ’–

okay bestie, welcome to the SystemTap Tapset Reference β€” manual section 3stap, utility functions for using an... something something, the header got cropped mid-word, we move. anyway. sit down, hydrate, let's talk about indentation. πŸŽ€


✨ NAME ✨

function::indent_depth β€” returns the global nested-depth 🫢


🌸 SYNOPSIS 🌸

indent_depth:long(delta:long)

πŸ¦‹ ARGUMENTS πŸ¦‹

  • delta β€” the amount of depth added/removed for each call

πŸ’… DESCRIPTION πŸ’…

so this function returns a number that you can use for appropriate indentation, similar to indent. that's the whole vibe. ✨

call it with a small positive delta, or a matching negative delta. matching!! keep them matched, bestie, don't be chaotic about it. 😭

and here's the part that's lowkey the whole personality of this function: unlike the thread_indent_depth function, the indent does not track individual indent values on a per thread basis. it's giving global. it's giving one shared depth for everybody. no per-thread little diaries. periodt. πŸ‘‘

🌈 SEE ALSO 🌈


and that's the page!! πŸ’– mwah. go forth and indent responsibly. this was the SystemTap Tapset Reference, Ver September 2026 β€” yeah the version field is literally just "Ver", we don't ask questions, we just slay. πŸŽ€βœ¨πŸ¦‹πŸŒΈπŸ«Ά

πŸ“¦ where this page comes from