linux/drivers/staging
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
..
android mm/fs: route MADV_REMOVE to FALLOC_FL_PUNCH_HOLE 2012-05-29 16:22:22 -07:00
asus_oled
bcm Staging: bcm: Remove two unused variables from Adapter.h 2012-05-18 17:41:16 -07:00
ccg staging: usb: gadget: Add FunctionFS support to Configurable Composite Gadget driver 2012-05-16 05:32:20 -07:00
comedi staging/comedi: fix build for USB not enabled 2012-06-11 16:49:35 -07:00
cptm1217
crystalhd
cxt1e1
echo
et131x
frontier
ft1000
gdm72xx netlink: add netlink_kernel_cfg parameter to netlink_kernel_create 2012-06-29 16:46:02 -07:00
iio staging:iio:ad7298: Fix linker error due to missing IIO kfifo buffer 2012-06-12 11:12:19 -07:00
ipack Staging: ipack/bridges/tpci200: remove unneeded casts 2012-05-18 17:38:17 -07:00
keucr
line6 staging: line6/config.h: Delete unused header 2012-05-18 17:13:52 -07:00
media Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media 2012-06-25 14:53:09 -07:00
net
nvec
octeon Staging tree pull request for 3.5-rc1 2012-05-22 16:34:21 -07:00
olpc_dcon
omapdrm staging: omapdrm: fix crash when freeing bad fb 2012-06-11 08:42:09 -07:00
ozwpan
panel
phison
quickstart
ramster Frontswap provides a "transcendent memory" interface for swap pages. 2012-06-04 12:28:45 -07:00
rtl8187se
rtl8192e
rtl8192u
rtl8712 staging: r8712u: Add new USB IDs 2012-06-15 14:50:04 -07:00
rts5139
rts_pstor
sbe-2t3e3
sep
serqt_usb2
slicoss
sm7xx
speakup
ste_rmi4
telephony
tidspbridge
usbip Revert "staging: usbip: bugfix for stack corruption on 64-bit architectures" 2012-06-12 11:10:50 -07:00
vme
vt6655
vt6656
winbond
wlags49_h2 Staging: wlags49_h2: potential NULL dereference 2012-05-14 15:43:44 -07:00
wlags49_h25
wlan-ng
xgifb
zcache Frontswap provides a "transcendent memory" interface for swap pages. 2012-06-04 12:28:45 -07:00
zram
zsmalloc
Kconfig Staging tree pull request for 3.5-rc1 2012-05-22 16:34:21 -07:00
Makefile Staging tree pull request for 3.5-rc1 2012-05-22 16:34:21 -07:00
staging.c