suspending threads before devices

Dag-Erling Smørgrav des at des.no
Sat Nov 15 17:04:08 UTC 2014


Adrian Chadd <adrian at freebsd.org> writes:
> Hm, would just creating a suspend kernel thread make it easier?
> Ie, instead of you doing the suspend in the context of the calling
> process, just have it signal to a kernel thread, so the userland
> thread doing the suspend can also be suspended?

My immediate reaction was "the process might want to know that the
system actually suspended (and resumed)" but this can be addressed by
having it sleep on a condvar which is awoken when either a) suspend
fails or b) the system resumes.

DES
-- 
Dag-Erling Smørgrav - des at des.no


More information about the freebsd-arch mailing list