user_disable_single_step(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… user_disable_single_step(9) πŸ’…

okay so this is a page from the Kernel API Manual, section 9, and it's about turning off single-step mode for a user-mode task. it's short, it's sweet, it's lowkey iconic. let's get into it 🫢


✨ NAME ✨

user_disable_single_step β€” cancel user-mode single-step, bestie. that's the whole vibe check.


🌸 SYNOPSIS 🌸

void user_disable_single_step (struct task_struct *task );

literally just one function, one argument, returns nothing (void). clean. minimal. ate. πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • task β€” either current or a task stopped in TASK_TRACED. no in-between, no "hmm what about…", those are the two moods. πŸ¦‹

πŸ’– DESCRIPTION πŸ’–

okay so what this does: it clears task of the effects of user_enable_single_step and user_enable_block_step. like, undoes the whole single-steppy situation. bye πŸ‘‹

and here's the part that's genuinely so chill of it β€” this can be called whether or not either of those was ever called on task. never enabled it? still fine. and it works even if arch_has_single_step returned zero. no cap. it just does the thing and doesn't make a whole drama about preconditions. 🌈

ngl it's giving "idempotent queen" energy and we respect it.

⭐ SEE ALSO ⭐

so you wanna go down the ptrace rabbit hole? valid. here's the whole friend group, no gatekeeping πŸ’œ


mwah πŸ’‹ this page lives in ./include/linux, dated October 2026, and it's fr fr the user_disable_single_step(9) moment. go forth and un-step. 🧚✨

πŸ“¦ where this page comes from