• Home
  • Raw
  • Download

Lines Matching refs:nl_table

88 struct netlink_table *nl_table;  variable
89 EXPORT_SYMBOL_GPL(nl_table);
859 struct nl_portid_hash *hash = &nl_table[protocol].hash; in netlink_lookup()
956 struct netlink_table *tbl = &nl_table[sk->sk_protocol]; in netlink_update_listeners()
979 struct nl_portid_hash *hash = &nl_table[sk->sk_protocol].hash; in netlink_insert()
1020 nl_table[sk->sk_protocol].hash.entries--; in netlink_remove()
1082 if (!nl_table[protocol].registered) { in netlink_create()
1088 if (nl_table[protocol].registered && in netlink_create()
1089 try_module_get(nl_table[protocol].module)) in netlink_create()
1090 module = nl_table[protocol].module; in netlink_create()
1093 cb_mutex = nl_table[protocol].cb_mutex; in netlink_create()
1094 bind = nl_table[protocol].bind; in netlink_create()
1155 BUG_ON(nl_table[sk->sk_protocol].registered == 0); in netlink_release()
1156 if (--nl_table[sk->sk_protocol].registered == 0) { in netlink_release()
1159 old = nl_deref_protected(nl_table[sk->sk_protocol].listeners); in netlink_release()
1160 RCU_INIT_POINTER(nl_table[sk->sk_protocol].listeners, NULL); in netlink_release()
1162 nl_table[sk->sk_protocol].module = NULL; in netlink_release()
1163 nl_table[sk->sk_protocol].bind = NULL; in netlink_release()
1164 nl_table[sk->sk_protocol].flags = 0; in netlink_release()
1165 nl_table[sk->sk_protocol].registered = 0; in netlink_release()
1186 struct nl_portid_hash *hash = &nl_table[sk->sk_protocol].hash; in netlink_autobind()
1224 return (nl_table[sock->sk->sk_protocol].flags & flag) || in netlink_capable()
1236 sk_add_bind_node(sk, &nl_table[sk->sk_protocol].mc_list); in netlink_update_subscriptions()
1249 groups = nl_table[sk->sk_protocol].groups; in netlink_realloc_groups()
1250 if (!nl_table[sk->sk_protocol].registered) { in netlink_realloc_groups()
1657 listeners = rcu_dereference(nl_table[sk->sk_protocol].listeners); in netlink_has_listeners()
1659 if (listeners && group - 1 < nl_table[sk->sk_protocol].groups) in netlink_has_listeners()
1786 sk_for_each_bound(sk, &nl_table[ssk->sk_protocol].mc_list) in netlink_broadcast_filtered()
1873 sk_for_each_bound(sk, &nl_table[ssk->sk_protocol].mc_list) in netlink_set_err()
2240 BUG_ON(!nl_table); in __netlink_kernel_create()
2280 if (!nl_table[unit].registered) { in __netlink_kernel_create()
2281 nl_table[unit].groups = groups; in __netlink_kernel_create()
2282 rcu_assign_pointer(nl_table[unit].listeners, listeners); in __netlink_kernel_create()
2283 nl_table[unit].cb_mutex = cb_mutex; in __netlink_kernel_create()
2284 nl_table[unit].module = module; in __netlink_kernel_create()
2286 nl_table[unit].bind = cfg->bind; in __netlink_kernel_create()
2287 nl_table[unit].flags = cfg->flags; in __netlink_kernel_create()
2289 nl_table[unit].registered = 1; in __netlink_kernel_create()
2292 nl_table[unit].registered++; in __netlink_kernel_create()
2318 struct netlink_table *tbl = &nl_table[sk->sk_protocol]; in __netlink_change_ngroups()
2364 struct netlink_table *tbl = &nl_table[ksk->sk_protocol]; in __netlink_clear_multicast_users()
2681 struct nl_portid_hash *hash = &nl_table[i].hash; in netlink_seq_socket_idx()
2729 struct nl_portid_hash *hash = &nl_table[i].hash; in netlink_seq_next()
2872 nl_table[NETLINK_USERSOCK].groups = groups; in netlink_add_usersock_entry()
2873 rcu_assign_pointer(nl_table[NETLINK_USERSOCK].listeners, listeners); in netlink_add_usersock_entry()
2874 nl_table[NETLINK_USERSOCK].module = THIS_MODULE; in netlink_add_usersock_entry()
2875 nl_table[NETLINK_USERSOCK].registered = 1; in netlink_add_usersock_entry()
2876 nl_table[NETLINK_USERSOCK].flags = NL_CFG_F_NONROOT_SEND; in netlink_add_usersock_entry()
2898 nl_table = kcalloc(MAX_LINKS, sizeof(*nl_table), GFP_KERNEL); in netlink_proto_init()
2899 if (!nl_table) in netlink_proto_init()
2912 struct nl_portid_hash *hash = &nl_table[i].hash; in netlink_proto_init()
2917 nl_portid_hash_free(nl_table[i].hash.table, in netlink_proto_init()
2919 kfree(nl_table); in netlink_proto_init()