Re: [PATCH 1/4] uaccess: add copy_word_from_user

From: Andrew Morton
Date: Wed Feb 25 2009 - 16:56:40 EST


On Wed, 25 Feb 2009 22:40:19 +0100
Frederic Weisbecker <fweisbec@xxxxxxxxx> wrote:

> Why not expand it to a copy_delimited_from_user() ?
> This way we could use any separator we want, not just spaces.
> We could use one more parameter for the separator and
> copy_work_from_user would be a wrapper above.

hah! That was quick.

Yes, you could pass in a delimiter string or a pointer to a user-supplier
function (which defaults to isspace() if NULL?) or whatever. But we can
do that if and when it is needed.
--
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/