OpenCloudOS-Kernel/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
..
Kconfig staging: gdm72xx depends on NET 2012-05-17 13:17:41 -07:00
Makefile
TODO
gdm_qos.c
gdm_qos.h
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
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
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
netlink_k.c netlink: add netlink_kernel_cfg parameter to netlink_kernel_create 2012-06-29 16:46:02 -07:00
netlink_k.h
sdio_boot.c
sdio_boot.h
usb_boot.c
usb_boot.h
usb_ids.h
wm_ioctl.h