Le Fri, 07 Dec 2007 10:28:53 +0100,
Peter Poulsen <[EMAIL PROTECTED]> a écrit :

> I have noticed __user in some code, when a pointer points to
> userspace code. What does that do exaclty?

AFAIK, they are used by sparse[1] to verify that the kernel code doesn't
access directly to pointers pointing to userspace part of the address
space, but rather use the copy_from_user(), copy_to_user() functions or
one of their variants.

Thomas

[1] http://www.kernel.org/pub/software/devel/sparse/
-- 
Thomas Petazzoni, [EMAIL PROTECTED], http://thomas.enix.org
Jabber, [EMAIL PROTECTED]
Toulibre, http://www.toulibre.org - APRIL, http://www.april.org
Fingerprint : 0BE1 4CF3 CEA4 AC9D CC6E  1624 F653 CB30 98D3 F7A7

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to