Re: [PATCH 03/39] wimax: constants and definitions to interact with user space

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Johannes Berg
Date: Thursday, November 27, 2008 - 2:41 am

On Wed, 2008-11-26 at 15:07 -0800, Inaky Perez-Gonzalez wrote:


Explicitly licensing a header file that's used for userspace tools under
GPL2 might seem to indicate that the tool must be GPL2'ed as well, this
seems unintended. To be on the safe side, it seems that a lot of people
would prefer this to be under something as simple as the ISC license
just so that you can simply copy the file if necessary.

I know this hasn't been done traditionally, but in wireless a lot of
people are complaining and I know of one case where a complete header
file was "reimplemented" from scratch because of such an issue.


This is another side effect of your decision of declaring attributes for
each command. If you didn't, you could simply do

enum wimax_attr {
	__WIMAX_GNL_ATTR_INVALID,
	WIMAX_GNL_ATTR_RFKILL_STATE,
	WIMAX_GNL_ATTR_...

	__WIMAX_GNL_ATTR_AFTER_LAST,
	WIMAX_GNL_ATTR_MAX =3D __WIMAX_GNL_ATTR_AFTER_LAST - 1
};

and have everything fall into place naturally.

Having just a single policy for all top-level attributes is a lot easier
to understand and also a lot more flexible in the long run.


What are those used for? Smells a lot like "iwpriv"...


That's not MAX, it's MAX+1, see the idiom above if you really need MAX.


So this is iwpriv? Why bother with an enum if you're not doing
kernel-doc?


What's wrong with making that 2, and using a single enum for all the
attributes? It doesn't make a huge difference.


again, not MAX, also what do you need MC_GROUP stuff for? genl mc groups
are available via the genl controller, isn't that sufficient?


This is a bit strange, what operations cannot just use the regular genl
ack message? Are these asynchronous?


That's not really available to userspace, is it? I mean, at that point
wimax-genl will just not work?

johannes
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 00/39] merge request for WiMAX kernel stack and i24 ..., Inaky Perez-Gonzalez, (Wed Nov 26, 3:40 pm)
[PATCH 01/39] wimax: documentation for the stack, Inaky Perez-Gonzalez, (Wed Nov 26, 3:40 pm)
[PATCH 02/39] wimax: declarations for the in-kernel WiMAX API, Inaky Perez-Gonzalez, (Wed Nov 26, 3:40 pm)
[PATCH 03/39] wimax: constants and definitions to interact ..., Inaky Perez-Gonzalez, (Wed Nov 26, 3:40 pm)
[PATCH 04/39] wimax: internal API for the kernel space WiM ..., Inaky Perez-Gonzalez, (Wed Nov 26, 3:40 pm)
[PATCH 05/39] wimax: debug macros and debug settings for t ..., Inaky Perez-Gonzalez, (Wed Nov 26, 3:40 pm)
[PATCH 06/39] genetlink: export genl_unregister_mc_group(), Inaky Perez-Gonzalez, (Wed Nov 26, 3:40 pm)
[PATCH 07/39] wimax: generic WiMAX device management (regi ..., Inaky Perez-Gonzalez, (Wed Nov 26, 3:40 pm)
[PATCH 08/39] wimax: Mappping of generic netlink family ID ..., Inaky Perez-Gonzalez, (Wed Nov 26, 3:40 pm)
[PATCH 09/39] wimax: provides user space with information ..., Inaky Perez-Gonzalez, (Wed Nov 26, 3:40 pm)
[PATCH 10/39] wimax: Generic messaging interface between u ..., Inaky Perez-Gonzalez, (Wed Nov 26, 3:40 pm)
[PATCH 11/39] wimax: RF-kill framework integration, Inaky Perez-Gonzalez, (Wed Nov 26, 3:40 pm)
[PATCH 12/39] wimax: API call to reset a WiMAX device, Inaky Perez-Gonzalez, (Wed Nov 26, 3:40 pm)
[PATCH 13/39] wimax: Makefile, Kconfig and docbook linkage ..., Inaky Perez-Gonzalez, (Wed Nov 26, 3:40 pm)
[PATCH 14/39] i2400m: documentation and instructions for usage, Inaky Perez-Gonzalez, (Wed Nov 26, 3:40 pm)
[PATCH 15/39] i2400m: host-to-device protocol definitions, Inaky Perez-Gonzalez, (Wed Nov 26, 3:40 pm)
[PATCH 16/39] i2400m: core driver definitions and API, Inaky Perez-Gonzalez, (Wed Nov 26, 3:40 pm)
[PATCH 17/39] i2400m: Generic probe/disconnect, reset and ..., Inaky Perez-Gonzalez, (Wed Nov 26, 3:40 pm)
[PATCH 18/39] i2400m: linkage to the networking stack, Inaky Perez-Gonzalez, (Wed Nov 26, 3:40 pm)
[PATCH 19/39] i2400m: sysfs controls, Inaky Perez-Gonzalez, (Wed Nov 26, 3:40 pm)
[PATCH 20/39] i2400m: rfkill integration with the WiMAX stack, Inaky Perez-Gonzalez, (Wed Nov 26, 3:40 pm)
[PATCH 21/39] i2400m: firmware loading and bootrom initial ..., Inaky Perez-Gonzalez, (Wed Nov 26, 3:40 pm)
[PATCH 22/39] i2400m: handling of the data/control recepti ..., Inaky Perez-Gonzalez, (Wed Nov 26, 3:40 pm)
[PATCH 23/39] i2400m: handling of the data/control transmi ..., Inaky Perez-Gonzalez, (Wed Nov 26, 3:40 pm)
[PATCH 24/39] i2400m: various functions for device management, Inaky Perez-Gonzalez, (Wed Nov 26, 3:40 pm)
[PATCH 25/39] i2400m/USB: header for the USB bus driver, Inaky Perez-Gonzalez, (Wed Nov 26, 3:40 pm)
[PATCH 26/39] i2400m/USB: error density tracking, Inaky Perez-Gonzalez, (Wed Nov 26, 3:40 pm)
[PATCH 27/39] i2400m/USB: main probe/disconnect and backen ..., Inaky Perez-Gonzalez, (Wed Nov 26, 3:40 pm)
[PATCH 28/39] i2400m/USB: firmware upload backend, Inaky Perez-Gonzalez, (Wed Nov 26, 3:40 pm)
[PATCH 29/39] i2400m/USB: handling of notifications from t ..., Inaky Perez-Gonzalez, (Wed Nov 26, 3:40 pm)
[PATCH 30/39] i2400m/USB: read transactions from the USB d ..., Inaky Perez-Gonzalez, (Wed Nov 26, 3:40 pm)
[PATCH 31/39] i2400m/USB: write transactions to the USB device, Inaky Perez-Gonzalez, (Wed Nov 26, 3:40 pm)
[PATCH 32/39] i2400m/SDIO: header for the SDIO subdriver, Inaky Perez-Gonzalez, (Wed Nov 26, 3:40 pm)
[PATCH 33/39] i2400m/SDIO: main probe/disconnect and backe ..., Inaky Perez-Gonzalez, (Wed Nov 26, 3:40 pm)
[PATCH 34/39] i2400m/SDIO: firmware upload backend, Inaky Perez-Gonzalez, (Wed Nov 26, 3:40 pm)
[PATCH 35/39] i2400m/SDIO: read transactions from the SDIO ..., Inaky Perez-Gonzalez, (Wed Nov 26, 3:40 pm)
[PATCH 36/39] i2400m/SDIO: write transactions to the SDIO ..., Inaky Perez-Gonzalez, (Wed Nov 26, 3:40 pm)
[PATCH 37/39] i2400m: Makefile and Kconfig, Inaky Perez-Gonzalez, (Wed Nov 26, 3:40 pm)
[PATCH 38/39] wimax: export linux/wimax.h and linux/wimax/ ..., Inaky Perez-Gonzalez, (Wed Nov 26, 3:40 pm)
[PATCH 39/39] wimax/i2400m: add CREDITS and MAINTAINERS en ..., Inaky Perez-Gonzalez, (Wed Nov 26, 3:40 pm)
Re: [PATCH 19/39] i2400m: sysfs controls, Johannes Berg, (Thu Nov 27, 2:23 am)
Re: [PATCH 00/39] merge request for WiMAX kernel stack and ..., Inaky Perez-Gonzalez, (Thu Nov 27, 2:24 am)
Re: [PATCH 01/39] wimax: documentation for the stack, Johannes Berg, (Thu Nov 27, 2:29 am)
Re: [PATCH 03/39] wimax: constants and definitions to inte ..., Johannes Berg, (Thu Nov 27, 2:41 am)
Re: [PATCH 11/39] wimax: RF-kill framework integration, Johannes Berg, (Thu Nov 27, 2:56 am)
Re: [PATCH 12/39] wimax: API call to reset a WiMAX device, Johannes Berg, (Thu Nov 27, 2:58 am)
Re: [PATCH 00/39] merge request for WiMAX kernel stack and ..., Arkadiusz Miskiewicz, (Thu Nov 27, 3:18 am)
Re: [PATCH 00/39] merge request for WiMAX kernel stack and ..., Inaky Perez-Gonzalez, (Thu Nov 27, 9:51 am)
Re: [PATCH 10/39] wimax: Generic messaging interface betwe ..., Inaky Perez-Gonzalez, (Tue Dec 2, 7:02 pm)
Re: [PATCH 11/39] wimax: RF-kill framework integration, Inaky Perez-Gonzalez, (Tue Dec 2, 7:03 pm)
Re: [PATCH 12/39] wimax: API call to reset a WiMAX device, Inaky Perez-Gonzalez, (Tue Dec 2, 7:05 pm)
Re: [PATCH 03/39] wimax: constants and definitions to inte ..., Inaky Perez-Gonzalez, (Tue Dec 2, 7:06 pm)
Re: [PATCH 09/39] wimax: provides user space with informat ..., Inaky Perez-Gonzalez, (Tue Dec 2, 7:06 pm)
Re: [PATCH 07/39] wimax: generic WiMAX device management ( ..., Inaky Perez-Gonzalez, (Tue Dec 2, 7:06 pm)
Re: [PATCH 08/39] wimax: Mappping of generic netlink famil ..., Inaky Perez-Gonzalez, (Tue Dec 2, 7:06 pm)
Re: [PATCH 14/39] i2400m: documentation and instructions f ..., Inaky Perez-Gonzalez, (Tue Dec 2, 7:06 pm)
Re: [PATCH 15/39] i2400m: host-to-device protocol definitions, Inaky Perez-Gonzalez, (Tue Dec 2, 7:06 pm)
Re: [PATCH 00/39] merge request for WiMAX kernel stack and ..., Inaky Perez-Gonzalez, (Tue Dec 2, 7:07 pm)
Re: [PATCH 02/39] wimax: declarations for the in-kernel Wi ..., Inaky Perez-Gonzalez, (Tue Dec 2, 7:07 pm)
Re: [PATCH 04/39] wimax: internal API for the kernel space ..., Inaky Perez-Gonzalez, (Tue Dec 2, 7:07 pm)
Re: [PATCH 05/39] wimax: debug macros and debug settings f ..., Inaky Perez-Gonzalez, (Tue Dec 2, 7:07 pm)
Re: [PATCH 01/39] wimax: documentation for the stack, Inaky Perez-Gonzalez, (Tue Dec 2, 7:07 pm)
Re: [PATCH 00/39] merge request for WiMAX kernel stack and ..., Inaky Perez-Gonzalez, (Tue Dec 2, 7:10 pm)
Re: [PATCH 00/39] merge request for WiMAX kernel stack and ..., Inaky Perez-Gonzalez, (Thu Dec 4, 12:21 pm)
Re: [PATCH 04/39] wimax: internal API for the kernel space ..., Inaky Perez-Gonzalez, (Thu Dec 4, 12:22 pm)
Re: [PATCH 02/39] wimax: declarations for the in-kernel Wi ..., Inaky Perez-Gonzalez, (Thu Dec 4, 1:11 pm)