Messages in this thread | | | Date | Wed, 25 Feb 2009 13:54:46 -0800 | From | Andrew Morton <> | Subject | Re: [PATCH 1/4] uaccess: add copy_word_from_user |
| |
On Wed, 25 Feb 2009 22:40:19 +0100 Frederic Weisbecker <fweisbec@gmail.com> 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.
| |