Lines Matching refs:hndl
149 const struct sock_diag_handler *hndl; in sock_diag_broadcast_destroy_work() local
160 hndl = sock_diag_lock_handler(sk->sk_family); in sock_diag_broadcast_destroy_work()
161 if (hndl) { in sock_diag_broadcast_destroy_work()
162 if (hndl->get_info) in sock_diag_broadcast_destroy_work()
163 err = hndl->get_info(skb, sk); in sock_diag_broadcast_destroy_work()
164 sock_diag_unlock_handler(hndl); in sock_diag_broadcast_destroy_work()
203 int sock_diag_register(const struct sock_diag_handler *hndl) in sock_diag_register() argument
205 int family = hndl->family; in sock_diag_register()
212 NULL, hndl) ? 0 : -EBUSY; in sock_diag_register()
216 void sock_diag_unregister(const struct sock_diag_handler *hndl) in sock_diag_unregister() argument
218 int family = hndl->family; in sock_diag_unregister()
232 const struct sock_diag_handler *hndl; in __sock_diag_cmd() local
244 hndl = sock_diag_lock_handler(req->sdiag_family); in __sock_diag_cmd()
245 if (hndl == NULL) in __sock_diag_cmd()
249 err = hndl->dump(skb, nlh); in __sock_diag_cmd()
250 else if (nlh->nlmsg_type == SOCK_DESTROY && hndl->destroy) in __sock_diag_cmd()
251 err = hndl->destroy(skb, nlh); in __sock_diag_cmd()
254 sock_diag_unlock_handler(hndl); in __sock_diag_cmd()