af_netlink.c (869e58f87094b1e8a0df49232e4a5172678d46c9) | af_netlink.c (b7c6ba6eb1234e35a74fb8ba8123232a7b1ba9e4) |
---|---|
1/* 2 * NETLINK Kernel-user communication protocol. 3 * 4 * Authors: Alan Cox <alan@redhat.com> 5 * Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License --- 1391 unchanged lines hidden (view full) --- 1400 1401out_sock_release: 1402 kfree(listeners); 1403 sock_release(sock); 1404 return NULL; 1405} 1406EXPORT_SYMBOL(netlink_kernel_create); 1407 | 1/* 2 * NETLINK Kernel-user communication protocol. 3 * 4 * Authors: Alan Cox <alan@redhat.com> 5 * Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License --- 1391 unchanged lines hidden (view full) --- 1400 1401out_sock_release: 1402 kfree(listeners); 1403 sock_release(sock); 1404 return NULL; 1405} 1406EXPORT_SYMBOL(netlink_kernel_create); 1407 |
1408 1409void 1410netlink_kernel_release(struct sock *sk) 1411{ 1412 if (sk == NULL || sk->sk_socket == NULL) 1413 return; 1414 sock_release(sk->sk_socket); 1415} 1416EXPORT_SYMBOL(netlink_kernel_release); 1417 1418 |
|
1408/** 1409 * netlink_change_ngroups - change number of multicast groups 1410 * 1411 * This changes the number of multicast groups that are available 1412 * on a certain netlink family. Note that it is not possible to 1413 * change the number of groups to below 32. Also note that it does 1414 * not implicitly call netlink_clear_multicast_users() when the 1415 * number of groups is reduced. --- 539 unchanged lines hidden --- | 1419/** 1420 * netlink_change_ngroups - change number of multicast groups 1421 * 1422 * This changes the number of multicast groups that are available 1423 * on a certain netlink family. Note that it is not possible to 1424 * change the number of groups to below 32. Also note that it does 1425 * not implicitly call netlink_clear_multicast_users() when the 1426 * number of groups is reduced. --- 539 unchanged lines hidden --- |