copyin()/copyout() constraints ?

Luigi Rizzo rizzo at iet.unipi.it
Wed Jun 12 17:58:16 UTC 2013


hi,
is it possible to run copyin() or copyout() in one of these cases:
1. while holding a spinlock
2. while holding a regular mutex/lock
3. while holding a read lock (on an RWLOCK or RMLOCK)
4. while holding a write lock (on an RWLOCK or RMLOCK)

I suspect #1 is forbidden, but am a bit unclear for the
other cases.

thanks
luigi


More information about the freebsd-current mailing list