Re: copy_from_user() return code?

Michael Elizabeth Chastain (mec@shout.net)
Mon, 2 Feb 1998 16:01:00 -0600


Hi Henner,

> 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?

Yes, it does.

> 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.

Yes, there are.

I would like to see these cleaned up before 2.2.0 but I don't have time
to work on it.

Regards,

Michael Chastain
<mailto:mec@shout.net>
"love without fear"