Lines Matching refs: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)
129 static int rxrpc_bind(struct socket *sock, struct sockaddr *saddr, int len)
133 struct rxrpc_sock *rx = rxrpc_sk(sock->sk);
209 static int rxrpc_listen(struct socket *sock, int backlog)
211 struct sock *sk = sock->sk;
262 * @sock: The socket on which to make the call
280 struct rxrpc_call *rxrpc_kernel_begin_call(struct socket *sock,
294 struct rxrpc_sock *rx = rxrpc_sk(sock->sk);
339 static void rxrpc_dummy_notify_rx(struct sock *sk, struct rxrpc_call *rxcall,
346 * @sock: The socket the call is on
352 void rxrpc_kernel_end_call(struct socket *sock, struct rxrpc_call *call)
357 rxrpc_release_call(rxrpc_sk(sock->sk), call);
373 * @sock: The socket the call is on
379 bool rxrpc_kernel_check_life(const struct socket *sock,
388 * @sock: The socket the call is on
394 u32 rxrpc_kernel_get_epoch(struct socket *sock, struct rxrpc_call *call)
402 * @sock: The socket to intercept received messages on
409 struct socket *sock,
413 struct rxrpc_sock *rx = rxrpc_sk(sock->sk);
422 * @sock: The socket the call is on
429 void rxrpc_kernel_set_max_life(struct socket *sock, struct rxrpc_call *call,
450 static int rxrpc_connect(struct socket *sock, struct sockaddr *addr,
454 struct rxrpc_sock *rx = rxrpc_sk(sock->sk);
500 static int rxrpc_sendmsg(struct socket *sock, struct msghdr *m, size_t len)
503 struct rxrpc_sock *rx = rxrpc_sk(sock->sk);
541 local = rxrpc_lookup_local(sock_net(sock->sk), &rx->srx);
575 int rxrpc_sock_set_min_security_level(struct sock *sk, unsigned int val)
591 static int rxrpc_setsockopt(struct socket *sock, int level, int optname,
594 struct rxrpc_sock *rx = rxrpc_sk(sock->sk);
690 static int rxrpc_getsockopt(struct socket *sock, int level, int optname,
718 static __poll_t rxrpc_poll(struct file *file, struct socket *sock,
721 struct sock *sk = sock->sk;
725 sock_poll_wait(file, sock, wait);
745 static int rxrpc_create(struct net *net, struct socket *sock, int protocol,
750 struct sock *sk;
752 _enter("%p,%d", sock, protocol);
759 if (sock->type != SOCK_DGRAM)
762 sock->ops = &rxrpc_rpc_ops;
763 sock->state = SS_UNCONNECTED;
769 sock_init_data(sock, sk);
798 static int rxrpc_shutdown(struct socket *sock, int flags)
800 struct sock *sk = sock->sk;
831 static void rxrpc_sock_destructor(struct sock *sk)
850 static int rxrpc_release_sock(struct sock *sk)
905 static int rxrpc_release(struct socket *sock)
907 struct sock *sk = sock->sk;
909 _enter("%p{%p}", sock, sk);
914 sock->sk = NULL;