Search Linux Wireless

Re: [RFC v4 6/8] kconfig: introduce "count"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 12 Nov 2015 09:47:51 +0100
Johannes Berg <johannes@xxxxxxxxxxxxxxxx> wrote:

> From: Johannes Berg <johannes.berg@xxxxxxxxx>
> 
> "count" works similar to "select"; take, for example, this snippet:
> 
>     config MY_COUNTER
>             int
> 
>     config MY_DRIVER_1
>             bool "my driver 1"
>             count MY_COUNTER
> 
>     config MY_DRIVER_2
>             bool "my driver 2"
>             count MY_COUNTER
> 
> This will get MY_COUNTER to have a value of 0, 1 or 2, depending
> on whether or not MY_DRIVER_1/MY_DRIVER_2 are not at all, one or
> both selected respectively.

I find the name "count" ambiguous. What happened to "increment" or
something?

-- Steve

> 
> This can be useful for certain optimization purposes but I'm sure
> people will come up with other creative usage.
> 
> Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx>
> ---

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux