user_disable_single_step(9)
π 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β eithercurrentor a task stopped inTASK_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 π
- Kernel file
./include/linux/ptrace.h ptrace_may_access(9)ptrace_parent(9)ptrace_event_enabled(9)ptrace_event(9)ptrace_event_pid(9)ptrace_init_task(9)ptrace_release_task(9)arch_has_single_step(9)user_enable_single_step(9)arch_has_block_step(9)user_enable_block_step(9)arch_ptrace_stop_needed(9)arch_ptrace_stop(9)ptrace_report_syscall_permit_entry(9)ptrace_report_syscall_exit(9)
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
- 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