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 on which to make the call
282 struct rxrpc_call *rxrpc_kernel_begin_call(struct socket *sock,
297 struct rxrpc_sock *rx = rxrpc_sk(sock->sk);
342 static void rxrpc_dummy_notify_rx(struct sock *sk, struct rxrpc_call *rxcall,
349 * @sock: The socket the call is on
355 void rxrpc_kernel_shutdown_call(struct socket *sock, struct rxrpc_call *call)
361 rxrpc_release_call(rxrpc_sk(sock->sk), call);
376 * @sock: The socket the call is on
381 void rxrpc_kernel_put_call(struct socket *sock, struct rxrpc_call *call)
389 * @sock: The socket the call is on
395 bool rxrpc_kernel_check_life(const struct socket *sock,
408 * @sock: The socket the call is on
414 u32 rxrpc_kernel_get_epoch(struct socket *sock, struct rxrpc_call *call)
422 * @sock: The socket to intercept received messages on
429 struct socket *sock,
433 struct rxrpc_sock *rx = rxrpc_sk(sock->sk);
442 * @sock: The socket the call is on
449 void rxrpc_kernel_set_max_life(struct socket *sock, struct rxrpc_call *call,
470 static int rxrpc_connect(struct socket *sock, struct sockaddr *addr,
474 struct rxrpc_sock *rx = rxrpc_sk(sock->sk);
521 static int rxrpc_sendmsg(struct socket *sock, struct msghdr *m, size_t len)
524 struct rxrpc_sock *rx = rxrpc_sk(sock->sk);
562 local = rxrpc_lookup_local(sock_net(sock->sk), &rx->srx);
596 int rxrpc_sock_set_min_security_level(struct sock *sk, unsigned int val)
612 static int rxrpc_setsockopt(struct socket *sock, int level, int optname,
615 struct rxrpc_sock *rx = rxrpc_sk(sock->sk);
711 static int rxrpc_getsockopt(struct socket *sock, int level, int optname,
739 static __poll_t rxrpc_poll(struct file *file, struct socket *sock,
742 struct sock *sk = sock->sk;
746 sock_poll_wait(file, sock, wait);
766 static int rxrpc_create(struct net *net, struct socket *sock, int protocol,
771 struct sock *sk;
773 _enter("%p,%d", sock, protocol);
780 if (sock->type != SOCK_DGRAM)
783 sock->ops = &rxrpc_rpc_ops;
784 sock->state = SS_UNCONNECTED;
790 sock_init_data(sock, sk);
819 static int rxrpc_shutdown(struct socket *sock, int flags)
821 struct sock *sk = sock->sk;
850 static void rxrpc_sock_destructor(struct sock *sk)
869 static int rxrpc_release_sock(struct sock *sk)
922 static int rxrpc_release(struct socket *sock)
924 struct sock *sk = sock->sk;
926 _enter("%p{%p}", sock, sk);
931 sock->sk = NULL;