Lines Matching refs:family
963 int sock_create_lite(int family, int type, int protocol, struct socket **res) in sock_create_lite() argument
968 err = security_socket_create(family, type, protocol, 1); in sock_create_lite()
979 err = security_socket_post_create(sock, family, type, protocol, 1); in sock_create_lite()
1097 int __sock_create(struct net *net, int family, int type, int protocol, in __sock_create() argument
1107 if (family < 0 || family >= NPROTO) in __sock_create()
1117 if (family == PF_INET && type == SOCK_PACKET) { in __sock_create()
1124 family = PF_PACKET; in __sock_create()
1127 err = security_socket_create(family, type, protocol, kern); in __sock_create()
1152 if (rcu_access_pointer(net_families[family]) == NULL) in __sock_create()
1153 request_module("net-pf-%d", family); in __sock_create()
1157 pf = rcu_dereference(net_families[family]); in __sock_create()
1188 err = security_socket_post_create(sock, family, type, protocol, kern); in __sock_create()
1210 int sock_create(int family, int type, int protocol, struct socket **res) in sock_create() argument
1212 return __sock_create(current->nsproxy->net_ns, family, type, protocol, res, 0); in sock_create()
1216 int sock_create_kern(int family, int type, int protocol, struct socket **res) in sock_create_kern() argument
1218 return __sock_create(&init_net, family, type, protocol, res, 1); in sock_create_kern()
1222 SYSCALL_DEFINE3(socket, int, family, int, type, int, protocol) in SYSCALL_DEFINE3() argument
1242 retval = sock_create(family, type, protocol, &sock); in SYSCALL_DEFINE3()
1263 SYSCALL_DEFINE4(socketpair, int, family, int, type, int, protocol, in SYSCALL_DEFINE4() argument
1284 err = sock_create(family, type, protocol, &sock1); in SYSCALL_DEFINE4()
1288 err = sock_create(family, type, protocol, &sock2); in SYSCALL_DEFINE4()
2442 if (ops->family >= NPROTO) { in sock_register()
2443 pr_crit("protocol %d >= NPROTO(%d)\n", ops->family, NPROTO); in sock_register()
2448 if (rcu_dereference_protected(net_families[ops->family], in sock_register()
2452 rcu_assign_pointer(net_families[ops->family], ops); in sock_register()
2457 pr_info("NET: Registered protocol family %d\n", ops->family); in sock_register()
2475 void sock_unregister(int family) in sock_unregister() argument
2477 BUG_ON(family < 0 || family >= NPROTO); in sock_unregister()
2480 RCU_INIT_POINTER(net_families[family], NULL); in sock_unregister()
2485 pr_info("NET: Unregistered protocol family %d\n", family); in sock_unregister()