Subject: Re: [PATCH v4 1/1] rps: core implementation

From: Stephen Hemminger <[email-masked]>
Date: Fri, 20 Nov 2009 15:40:46 -0800

On Fri, 20 Nov 2009 15:28:58 -0800
Tom Herbert <[email-masked]> wrote:

> +static char *get_token(const char **cp, size_t *len)
> +{
> +	const char *bp = *cp;
> +	char *start;
> +
> +	while (isspace(*bp))
> +		bp++;
> +
> +	start = (char *)bp;
> +	while (!isspace(*bp) && *bp != '\0')
> +		bp++;
> +
> +	if (start != bp)
> +		*len = bp - start;
> +	else
> +		start = NULL;
> +
> +	*cp = bp;
> +	return start;
> +}

Sysfs is intentionally one value per file. If you need multiple
values, then it is the wrong interface.

--