copyin() EFAULT

David Schultz das at FreeBSD.ORG
Thu May 20 15:58:27 PDT 2004


On Wed, May 19, 2004, Tomas Pluskal wrote:
> I would like to ask you for help or explanation - why do I get EFAULT when
> invoking copyin() or fubyte() etc. I am writing a kernel module, and I
[...]
> So copying of some blocks was OK, and on some blocks it returned EFAULT.
> Why?

You will get EFAULT when you try to copy pages that are not mapped
in the user process.


More information about the freebsd-hackers mailing list