Re: [PATCH v8 net-next 1/3] filter: add Extended BPF interpreter and converter

From: H. Peter Anvin
Date: Mon Mar 10 2014 - 22:34:16 EST


Why not for variables? It makes a lot of sense of nothing else to avoid the confusion that invariably happens when someone decides to introduce the value 2 or -1 to an existing variable (and yes, thus has happened a number of times.)

Not to mention they take a single byte rather than four for an int if stored in memory.

On March 10, 2014 7:24:49 PM PDT, David Miller <davem@xxxxxxxxxxxxx> wrote:
>From: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>
>Date: Mon, 10 Mar 2014 19:02:18 -0700
>
>> I would generally suggest that people only use "bool" for function
>> return types, and absolutely nothing else. Seriously.
>
>I think it makes sense for function arguments too.

--
Sent from my mobile phone. Please pardon brevity and lack of formatting.
--
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/