Re: Block driver design issue

From: Manfred Spraul (manfred@colorfullife.com)
Date: Mon Feb 12 2001 - 12:30:58 EST


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 majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://vger.kernel.org/lkml/



This archive was generated by hypermail 2b29 : Thu Feb 15 2001 - 21:00:19 EST