Lines Matching defs:sock
43 #include <net/sock.h>
149 struct sock *notify_sock;
1321 struct sock *sock;
1329 sock = NULL;
1363 sock = netlink_getsockbyfilp(f.file);
1365 if (IS_ERR(sock)) {
1366 ret = PTR_ERR(sock);
1371 ret = netlink_attachskb(sock, nc, &timeo, NULL);
1373 sock = NULL;
1409 info->notify_sock = sock;
1411 sock = NULL;
1431 if (sock)
1432 netlink_detachskb(sock, nc);