a31f2d17b3
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> |
||
---|---|---|
.. | ||
gdm_qos.c | ||
gdm_qos.h | ||
gdm_sdio.c | ||
gdm_sdio.h | ||
gdm_usb.c | ||
gdm_usb.h | ||
gdm_wimax.c | ||
gdm_wimax.h | ||
hci.h | ||
Kconfig | ||
Makefile | ||
netlink_k.c | ||
netlink_k.h | ||
sdio_boot.c | ||
sdio_boot.h | ||
TODO | ||
usb_boot.c | ||
usb_boot.h | ||
usb_ids.h | ||
wm_ioctl.h |