user_enable_single_step(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« user_enable_single_step(9) πŸ’«

okay bestie, welcome to the Kernel API Manual page for user_enable_single_step(9) β€” we're doing kernel ptrace single-step realness today, and yes it's giving very niche but iconic πŸ”₯

🌸 NAME 🌸

user_enable_single_step β€” single-step in user-mode task. πŸ’…

✨ SYNOPSIS ✨

void user_enable_single_step (struct task_struct *task );

πŸŽ€ ARGUMENTS πŸŽ€

  • task β€” either current or a task stopped in TASK_TRACED. 🫢

πŸ’– DESCRIPTION πŸ’–

okay so the rule is: this can only be called when arch_has_single_step has returned nonzero. no cap, that's the gate πŸ’…

It sets task so that when it returns to user mode, it will trap after the next single instruction executes. periodt β€” one instruction, then trap, that's the whole vibe ⭐

If arch_has_block_step is defined, this must clear the effects of user_enable_block_step too. like, do not leave those effects hanging around, bestie 😭

πŸ”₯ SEE ALSO πŸ”₯

Kernel file: ./include/linux/ptrace.h πŸ“š

🫢 source/version: ./include/linux Β· date: October 2026 Β· page: user_enable_single_step(9) β€” mwah, go be iconic ✨
πŸ“¦ where this page comes from