Re: must-fix list, v5

From: Pavel Machek (pavel@suse.cz)
Date: Thu May 29 2003 - 15:13:46 EST


Hi!

> > What is copy_in_user?
> >
> > Both source and destination pointers are in userspace.
>
> sys_memcpy() ?

No, its for in-kernel usage. If you want to copy 10 bytes in
userspace, you can't use memcpy()... You'd have to do copy_from_user()
then copy_to_user(); and that's what copy_in_user does.

Pavel
--
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/