Home
last modified time | relevance | path

Searched refs:kern (Results 1 – 25 of 55) sorted by relevance

123

/net/bridge/netfilter/
Debt_mark_m.c49 struct ebt_mark_m_info *kern = dst; in mark_mt_compat_from_user() local
51 kern->mark = user->mark; in mark_mt_compat_from_user()
52 kern->mask = user->mask; in mark_mt_compat_from_user()
53 kern->invert = user->invert; in mark_mt_compat_from_user()
54 kern->bitmask = user->bitmask; in mark_mt_compat_from_user()
60 const struct ebt_mark_m_info *kern = src; in mark_mt_compat_to_user() local
62 if (put_user(kern->mark, &user->mark) || in mark_mt_compat_to_user()
63 put_user(kern->mask, &user->mask) || in mark_mt_compat_to_user()
64 put_user(kern->invert, &user->invert) || in mark_mt_compat_to_user()
65 put_user(kern->bitmask, &user->bitmask)) in mark_mt_compat_to_user()
Debt_mark.c65 struct ebt_mark_t_info *kern = dst; in mark_tg_compat_from_user() local
67 kern->mark = user->mark; in mark_tg_compat_from_user()
68 kern->target = user->target; in mark_tg_compat_from_user()
74 const struct ebt_mark_t_info *kern = src; in mark_tg_compat_to_user() local
76 if (put_user(kern->mark, &user->mark) || in mark_tg_compat_to_user()
77 put_user(kern->target, &user->target)) in mark_tg_compat_to_user()
/net/nfc/
Daf_nfc.c19 int kern) in nfc_sock_create() argument
31 rc = proto_tab[proto]->create(net, sock, proto_tab[proto], kern); in nfc_sock_create()
Dllcp_sock.c439 int flags, bool kern) in llcp_sock_accept() argument
950 struct sock *nfc_llcp_sock_alloc(struct socket *sock, int type, gfp_t gfp, int kern) in nfc_llcp_sock_alloc() argument
955 sk = sk_alloc(&init_net, PF_NFC, gfp, &llcp_sock_proto, kern); in nfc_llcp_sock_alloc()
1001 const struct nfc_protocol *nfc_proto, int kern) in llcp_sock_create() argument
1020 sk = nfc_llcp_sock_alloc(sock, sock->type, GFP_ATOMIC, kern); in llcp_sock_create()
Drawsock.c326 const struct nfc_protocol *nfc_proto, int kern) in rawsock_create() argument
340 sk = sk_alloc(net, PF_NFC, GFP_ATOMIC, nfc_proto->proto, kern); in rawsock_create()
Dnfc.h24 const struct nfc_protocol *nfc_proto, int kern);
Dllcp.h216 struct sock *nfc_llcp_sock_alloc(struct socket *sock, int type, gfp_t gfp, int kern);
/net/atm/
Dpvc.c134 int kern) in pvc_create() argument
140 return vcc_create(net, sock, protocol, PF_ATMPVC, kern); in pvc_create()
Dsvc.c32 int kern);
323 bool kern) in svc_accept() argument
334 error = svc_create(sock_net(sk), newsock, 0, kern); in svc_accept()
657 int kern) in svc_create() argument
665 error = vcc_create(net, sock, protocol, AF_ATMSVC, kern); in svc_create()
Dcommon.h14 int vcc_create(struct net *net, struct socket *sock, int protocol, int family, int kern);
/net/bluetooth/bnep/
Dsock.c200 int kern) in bnep_sock_create() argument
209 sk = sk_alloc(net, PF_BLUETOOTH, GFP_ATOMIC, &bnep_proto, kern); in bnep_sock_create()
/net/bluetooth/cmtp/
Dsock.c203 int kern) in cmtp_sock_create() argument
212 sk = sk_alloc(net, PF_BLUETOOTH, GFP_ATOMIC, &cmtp_proto, kern); in cmtp_sock_create()
/net/bluetooth/rfcomm/
Dsock.c274 …ruct sock *rfcomm_sock_alloc(struct net *net, struct socket *sock, int proto, gfp_t prio, int kern) in rfcomm_sock_alloc() argument
279 sk = sk_alloc(net, PF_BLUETOOTH, prio, &rfcomm_proto, kern); in rfcomm_sock_alloc()
316 int protocol, int kern) in rfcomm_sock_create() argument
329 sk = rfcomm_sock_alloc(net, sock, protocol, GFP_ATOMIC, kern); in rfcomm_sock_create()
477 bool kern) in rfcomm_sock_accept() argument
/net/bluetooth/hidp/
Dsock.c251 int kern) in hidp_sock_create() argument
260 sk = sk_alloc(net, PF_BLUETOOTH, GFP_ATOMIC, &hidp_proto, kern); in hidp_sock_create()
/net/bluetooth/
Dl2cap_sock.c47 int proto, gfp_t prio, int kern);
305 int flags, bool kern) in l2cap_sock_accept() argument
1588 int proto, gfp_t prio, int kern) in l2cap_sock_alloc() argument
1593 sk = sk_alloc(net, PF_BLUETOOTH, prio, &l2cap_proto, kern); in l2cap_sock_alloc()
1622 int kern) in l2cap_sock_create() argument
1634 if (sock->type == SOCK_RAW && !kern && !capable(CAP_NET_RAW)) in l2cap_sock_create()
1639 sk = l2cap_sock_alloc(net, sock, protocol, GFP_ATOMIC, kern); in l2cap_sock_create()
Dsco.c470 int proto, gfp_t prio, int kern) in sco_sock_alloc() argument
474 sk = sk_alloc(net, PF_BLUETOOTH, prio, &sco_proto, kern); in sco_sock_alloc()
498 int kern) in sco_sock_create() argument
511 sk = sco_sock_alloc(net, sock, protocol, GFP_ATOMIC, kern); in sco_sock_create()
629 int flags, bool kern) in sco_sock_accept() argument
Daf_bluetooth.c112 int kern) in bt_sock_create() argument
130 err = bt_proto[proto]->create(net, sock, proto, kern); in bt_sock_create()
/net/ipv6/
Daf_inet6.c108 int kern) in inet6_create() argument
168 if (sock->type == SOCK_RAW && !kern && in inet6_create()
180 sk = sk_alloc(net, PF_INET6, GFP_KERNEL, answer_prot, kern); in inet6_create()
260 if (!kern) { in inet6_create()
/net/ipv4/
Daf_inet.c248 int kern) in inet_create() argument
309 if (sock->type == SOCK_RAW && !kern && in inet_create()
321 sk = sk_alloc(net, PF_INET, GFP_KERNEL, answer_prot, kern); in inet_create()
386 if (!kern) { in inet_create()
734 bool kern) in inet_accept() argument
738 struct sock *sk2 = sk1->sk_prot->accept(sk1, flags, &err, kern); in inet_accept()
/net/phonet/
Daf_phonet.c51 int kern) in pn_socket_create() argument
87 sk = sk_alloc(net, PF_PHONET, GFP_KERNEL, pnp->prot, kern); in pn_socket_create()
/net/x25/
Daf_x25.c512 static struct sock *x25_alloc_socket(struct net *net, int kern) in x25_alloc_socket() argument
515 struct sock *sk = sk_alloc(net, AF_X25, GFP_ATOMIC, &x25_proto, kern); in x25_alloc_socket()
532 int kern) in x25_create() argument
550 if ((sk = x25_alloc_socket(net, kern)) == NULL) in x25_create()
866 bool kern) in x25_accept() argument
/net/vmw_vsock/
Daf_vsock.c579 int kern) in __vsock_create() argument
585 sk = sk_alloc(net, AF_VSOCK, priority, &vsock_proto, kern); in __vsock_create()
1251 bool kern) in vsock_accept() argument
1847 int protocol, int kern) in vsock_create() argument
1868 return __vsock_create(net, sock, NULL, GFP_KERNEL, 0, kern) ? 0 : -ENOMEM; in vsock_create()
/net/decnet/
Daf_decnet.c464 static struct sock *dn_alloc_sock(struct net *net, struct socket *sock, gfp_t gfp, int kern) in dn_alloc_sock() argument
467 struct sock *sk = sk_alloc(net, PF_DECnet, gfp, &dn_proto, kern); in dn_alloc_sock()
669 int kern) in dn_create() argument
691 if ((sk = dn_alloc_sock(net, sock, GFP_KERNEL, kern)) == NULL) in dn_create()
1066 bool kern) in dn_accept() argument
1095 newsk = dn_alloc_sock(sock_net(sk), newsock, sk->sk_allocation, kern); in dn_accept()
/net/can/
Daf_can.c115 int kern) in can_create() argument
158 sk = sk_alloc(net, PF_CAN, GFP_KERNEL, cp->prot, kern); in can_create()
/net/llc/
Daf_llc.c164 int kern) in llc_ui_create() argument
177 sk = llc_sk_alloc(net, PF_LLC, GFP_KERNEL, &llc_proto, kern); in llc_ui_create()
666 bool kern) in llc_ui_accept() argument

123