kernel-fxtec-pro1x/drivers/staging/gdm72xx
Pablo Neira Ayuso a31f2d17b3 netlink: add netlink_kernel_cfg parameter to netlink_kernel_create
This patch adds the following structure:

struct netlink_kernel_cfg {
        unsigned int    groups;
        void            (*input)(struct sk_buff *skb);
        struct mutex    *cb_mutex;
};

That can be passed to netlink_kernel_create to set optional configurations
for netlink kernel sockets.

I've populated this structure by looking for NULL and zero parameters at the
existing code. The remaining parameters that always need to be set are still
left in the original interface.

That includes optional parameters for the netlink socket creation. This allows
easy extensibility of this interface in the future.

This patch also adapts all callers to use this new interface.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-06-29 16:46:02 -07:00
..
gdm_qos.c staging: gdm72xx: Add GCT GDM72xx WiMAX driver. 2012-05-15 08:49:35 -07:00
gdm_qos.h staging: gdm72xx: Add GCT GDM72xx WiMAX driver. 2012-05-15 08:49:35 -07:00
gdm_sdio.c staging: gdm72xx: Set up parent link in sysfs for gdm72xx devices 2012-05-17 13:17:41 -07:00
gdm_sdio.h staging: gdm72xx: Add GCT GDM72xx WiMAX driver. 2012-05-15 08:49:35 -07:00
gdm_usb.c staging: gdm72xx: Set up parent link in sysfs for gdm72xx devices 2012-05-17 13:17:41 -07:00
gdm_usb.h staging: gdm72xx: Add GCT GDM72xx WiMAX driver. 2012-05-15 08:49:35 -07:00
gdm_wimax.c staging: gdm72xx: Set up parent link in sysfs for gdm72xx devices 2012-05-17 13:17:41 -07:00
gdm_wimax.h staging: gdm72xx: Set up parent link in sysfs for gdm72xx devices 2012-05-17 13:17:41 -07:00
hci.h staging: gdm72xx: Add GCT GDM72xx WiMAX driver. 2012-05-15 08:49:35 -07:00
Kconfig staging: gdm72xx depends on NET 2012-05-17 13:17:41 -07:00
Makefile staging: gdm72xx: Add GCT GDM72xx WiMAX driver. 2012-05-15 08:49:35 -07:00
netlink_k.c netlink: add netlink_kernel_cfg parameter to netlink_kernel_create 2012-06-29 16:46:02 -07:00
netlink_k.h staging: gdm72xx: Add GCT GDM72xx WiMAX driver. 2012-05-15 08:49:35 -07:00
sdio_boot.c staging: gdm72xx: Add GCT GDM72xx WiMAX driver. 2012-05-15 08:49:35 -07:00
sdio_boot.h staging: gdm72xx: Add GCT GDM72xx WiMAX driver. 2012-05-15 08:49:35 -07:00
TODO staging: gdm72xx: Add GCT GDM72xx WiMAX driver. 2012-05-15 08:49:35 -07:00
usb_boot.c staging: gdm72xx: Add GCT GDM72xx WiMAX driver. 2012-05-15 08:49:35 -07:00
usb_boot.h staging: gdm72xx: Add GCT GDM72xx WiMAX driver. 2012-05-15 08:49:35 -07:00
usb_ids.h staging: gdm72xx: Add GCT GDM72xx WiMAX driver. 2012-05-15 08:49:35 -07:00
wm_ioctl.h staging: gdm72xx: Add GCT GDM72xx WiMAX driver. 2012-05-15 08:49:35 -07:00