HomeFreeBSD

Add sleepq_remove_nested()

Description

Add sleepq_remove_nested()

The helper removes the thread from a sleep queue, assuming that it would
need to sleep. The sleepq_remove_nested() function is intended for quite
special case, where suspended thread from traced stopped process is
temporary unsuspended to do some work on behalf of the debugger in the
target context, and this work might require sleep.

Reviewed by: markj
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D29955

Details

Provenance
kibAuthored on Apr 25 2021, 12:01 AM
Reviewer
markj
Differential Revision
D29955: ptrace(PT_COREDUMP)
Parents
R10:86ffb3d1a0cb: ELF coredump: define several useful flags for the coredump operations
Branches
Unknown
Tags
Unknown