Lines Matching defs:sock

20 #include <net/sock.h>
46 static void rxrpc_sock_destructor(struct sock *);
51 static inline int rxrpc_writable(struct sock *sk)
59 static void rxrpc_write_space(struct sock *sk)
130 static int rxrpc_bind(struct socket *sock, struct sockaddr *saddr, int len)
134 struct rxrpc_sock *rx = rxrpc_sk(sock->sk);
210 static int rxrpc_listen(struct socket *sock, int backlog)
212 struct sock *sk = sock->sk;
263 * @sock: The socket through which it will be accessed
270 struct rxrpc_peer *rxrpc_kernel_lookup_peer(struct socket *sock,
273 struct rxrpc_sock *rx = rxrpc_sk(sock->sk);
308 * @sock: The socket on which to make the call
328 struct rxrpc_call *rxrpc_kernel_begin_call(struct socket *sock,
344 struct rxrpc_sock *rx = rxrpc_sk(sock->sk);
388 static void rxrpc_dummy_notify_rx(struct sock *sk, struct rxrpc_call *rxcall,
395 * @sock: The socket the call is on
401 void rxrpc_kernel_shutdown_call(struct socket *sock, struct rxrpc_call *call)
407 rxrpc_release_call(rxrpc_sk(sock->sk), call);
422 * @sock: The socket the call is on
427 void rxrpc_kernel_put_call(struct socket *sock, struct rxrpc_call *call)
435 * @sock: The socket the call is on
441 bool rxrpc_kernel_check_life(const struct socket *sock,
454 * @sock: The socket the call is on
460 u32 rxrpc_kernel_get_epoch(struct socket *sock, struct rxrpc_call *call)
468 * @sock: The socket to intercept received messages on
475 struct socket *sock,
479 struct rxrpc_sock *rx = rxrpc_sk(sock->sk);
488 * @sock: The socket the call is on
495 void rxrpc_kernel_set_max_life(struct socket *sock, struct rxrpc_call *call,
516 static int rxrpc_connect(struct socket *sock, struct sockaddr *addr,
520 struct rxrpc_sock *rx = rxrpc_sk(sock->sk);
567 static int rxrpc_sendmsg(struct socket *sock, struct msghdr *m, size_t len)
570 struct rxrpc_sock *rx = rxrpc_sk(sock->sk);
608 local = rxrpc_lookup_local(sock_net(sock->sk), &rx->srx);
642 int rxrpc_sock_set_min_security_level(struct sock *sk, unsigned int val)
658 static int rxrpc_setsockopt(struct socket *sock, int level, int optname,
661 struct rxrpc_sock *rx = rxrpc_sk(sock->sk);
757 static int rxrpc_getsockopt(struct socket *sock, int level, int optname,
785 static __poll_t rxrpc_poll(struct file *file, struct socket *sock,
788 struct sock *sk = sock->sk;
792 sock_poll_wait(file, sock, wait);
812 static int rxrpc_create(struct net *net, struct socket *sock, int protocol,
817 struct sock *sk;
819 _enter("%p,%d", sock, protocol);
826 if (sock->type != SOCK_DGRAM)
829 sock->ops = &rxrpc_rpc_ops;
830 sock->state = SS_UNCONNECTED;
836 sock_init_data(sock, sk);
865 static int rxrpc_shutdown(struct socket *sock, int flags)
867 struct sock *sk = sock->sk;
896 static void rxrpc_sock_destructor(struct sock *sk)
915 static int rxrpc_release_sock(struct sock *sk)
968 static int rxrpc_release(struct socket *sock)
970 struct sock *sk = sock->sk;
972 _enter("%p{%p}", sock, sk);
977 sock->sk = NULL;