Lines Matching refs:family
961 int sock_create_lite(int family, int type, int protocol, struct socket **res) in sock_create_lite() argument
966 err = security_socket_create(family, type, protocol, 1); in sock_create_lite()
977 err = security_socket_post_create(sock, family, type, protocol, 1); in sock_create_lite()
1088 int __sock_create(struct net *net, int family, int type, int protocol, in __sock_create() argument
1098 if (family < 0 || family >= NPROTO) in __sock_create()
1108 if (family == PF_INET && type == SOCK_PACKET) { in __sock_create()
1115 family = PF_PACKET; in __sock_create()
1118 err = security_socket_create(family, type, protocol, kern); in __sock_create()
1143 if (rcu_access_pointer(net_families[family]) == NULL) in __sock_create()
1144 request_module("net-pf-%d", family); in __sock_create()
1148 pf = rcu_dereference(net_families[family]); in __sock_create()
1179 err = security_socket_post_create(sock, family, type, protocol, kern); in __sock_create()
1201 int sock_create(int family, int type, int protocol, struct socket **res) in sock_create() argument
1203 return __sock_create(current->nsproxy->net_ns, family, type, protocol, res, 0); in sock_create()
1207 int sock_create_kern(struct net *net, int family, int type, int protocol, struct socket **res) in sock_create_kern() argument
1209 return __sock_create(net, family, type, protocol, res, 1); in sock_create_kern()
1213 SYSCALL_DEFINE3(socket, int, family, int, type, int, protocol) in SYSCALL_DEFINE3() argument
1233 retval = sock_create(family, type, protocol, &sock); in SYSCALL_DEFINE3()
1254 SYSCALL_DEFINE4(socketpair, int, family, int, type, int, protocol, in SYSCALL_DEFINE4() argument
1275 err = sock_create(family, type, protocol, &sock1); in SYSCALL_DEFINE4()
1279 err = sock_create(family, type, protocol, &sock2); in SYSCALL_DEFINE4()
2433 if (ops->family >= NPROTO) { in sock_register()
2434 pr_crit("protocol %d >= NPROTO(%d)\n", ops->family, NPROTO); in sock_register()
2439 if (rcu_dereference_protected(net_families[ops->family], in sock_register()
2443 rcu_assign_pointer(net_families[ops->family], ops); in sock_register()
2448 pr_info("NET: Registered protocol family %d\n", ops->family); in sock_register()
2466 void sock_unregister(int family) in sock_unregister() argument
2468 BUG_ON(family < 0 || family >= NPROTO); in sock_unregister()
2471 RCU_INIT_POINTER(net_families[family], NULL); in sock_unregister()
2476 pr_info("NET: Unregistered protocol family %d\n", family); in sock_unregister()