Lines Matching refs:nl_sock
30 # define nl_sock nl_handle macro
37 static inline void nl_socket_free(struct nl_sock *h) in nl_socket_free()
42 static inline int __genl_ctrl_alloc_cache(struct nl_sock *h, struct nl_cache **cache) in __genl_ctrl_alloc_cache()
54 struct nl_sock *nl_sock; member
63 state->nl_sock = nl_socket_alloc(); in nl80211_init()
64 if (!state->nl_sock) { in nl80211_init()
69 if (genl_connect(state->nl_sock)) { in nl80211_init()
75 if (genl_ctrl_alloc_cache(state->nl_sock, &state->nl_cache)) { in nl80211_init()
93 nl_socket_free(state->nl_sock); in nl80211_init()
101 nl_socket_free(state->nl_sock); in nl80211_cleanup()
531 err = nl_send_auto_complete(state->nl_sock, msg); in __handle_cmd()
542 nl_recvmsgs(state->nl_sock, cb); in __handle_cmd()