On Thu, 2008-05-22 at 18:15 +0200, Joachim Worringen wrote:
> 1. Check if a given user space address can be accessed for read or
> write. I could imagine doing a dummy ddi_copyin() and check the return
> code, but this seems not very elegant. It becomes worse for write
> access. Linux has an "access_ok()" macro.
can you explain further what you're trying to do with this? another
thread could get in sideways and unmap a page after your access_ok() ..
why can't you just move data with ddi_copy*() when you have data to move?
- Bill
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code