Re: [PATCH] Terminate hugetlbfs mount argument list

From: Roland Dreier
Date: Tue Mar 11 2008 - 19:26:39 EST


> Hmm indeed I did. To my defense it's a weird unusual coding pattern
> that tricked me. What good is it to give terminator elements own enum values?

It's a little odd. But I guess it does let you do

token = match_token(...table...);
switch (token) {
case ERR_VALUE:...

and get ERR_VALUE back for anything that doesn't match one of the real
token patterns.

- R.
--
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/