LA Walsh wrote:
>
>
> I find this duplication of code to be inefficient. Is there a way to dummy up the
> the 'buf' address so that the "copy_from_user" will copy the buffer from kernel
>space?
> My assumption is that it wouldn't "just work" (which may also be an invalid
>assumption).
>
> Suggestions? Abuse?
>
set_fs(KERNEL_DS)?
After that call copy_from_user() will accept kernel space addresses.
--
Manfred
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://vger.kernel.org/lkml/