copy_from_user() return code?

Henner Eisen (eis@baty.hanse.de)
Mon, 2 Feb 1998 18:45:35 +0100


Hi,

as discussed here some days ago, copy_to_user() returns the number of bytes
left uncopied.

Does copy_from_user() also return the number of uncopied bytes?

(Sorry, as I'm not familar with i386 assembly code, I wasn't able to figure
this out on my own).

When I watched out for some buggy `return copy_to_user()` statements
I noticed that there were lots of similar `return copy_from_user()`
statements as well.

Henner