arch_has_single_step(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… arch_has_single_step β€” a little kernel API manual moment, section 9, bestie

okay so we're in the Kernel API Manual, section 9, and today's main character is arch_has_single_step. she's short, she's sweet, she's a preprocessor-level vibe check. let's get into it πŸŽ€


✨ NAME ✨

arch_has_single_step β€” literally just answers the question: does this CPU support user-mode single-step? that's it. that's the whole thing. πŸ¦‹


🌸 SYNOPSIS 🌸

arch_has_single_step

no args, no flags, no drama. she just is. πŸ’…


πŸ’– DESCRIPTION πŸ’–

okay so here's the tea, bestie πŸ“ β€” if this thing is defined, then there must be function declarations or inlines for user_enable_single_step and user_disable_single_step. like, that's the deal. no cap. if you define the macro, you gotta bring her two friends along too, periodt.

and arch_has_single_step should evaluate to nonzero iff the machine supports instruction single-step for user mode. yes, that's "if and only if" β€” she's precise like that. πŸ’€

the way that it can be a constant... or it can test a CPU feature bit. either one, queen's choice. πŸ‘‘

🫢 reminder: nonzero = yes she can, zero = no she can't. don't come for me, that's just what the manpage says.

πŸ”₯ SEE ALSO πŸ”₯

like, the whole ptrace friend group showed up to the party 🌈 literally every single one of them, we love a supportive squad.


and that's the page, bestie 🧚 from ./include/linux, dated October 2026, and yes β€” arch_has_single_step(9) says hi from the footer too. mwah πŸ’œ ⭐ πŸ‘‘

πŸ“¦ where this page comes from