Lines Matching refs:sock
39 #include <net/sock.h>
59 static int rds_release(struct socket *sock)
61 struct sock *sk = sock->sk;
86 sock->sk = NULL;
95 * to wake the waitqueue after sk_sleep is clear as we hold a sock ref, but
110 static int rds_getname(struct socket *sock, struct sockaddr *uaddr,
114 struct rds_sock *rs = rds_sk_to_rs(sock->sk);
153 static unsigned int rds_poll(struct file *file, struct socket *sock,
156 struct sock *sk = sock->sk;
193 static int rds_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
256 static int rds_setsockopt(struct socket *sock, int level, int optname,
259 struct rds_sock *rs = rds_sk_to_rs(sock->sk);
293 static int rds_getsockopt(struct socket *sock, int level, int optname,
296 struct rds_sock *rs = rds_sk_to_rs(sock->sk);
309 ret = rds_info_getsockopt(sock, optname, optval,
332 static int rds_connect(struct socket *sock, struct sockaddr *uaddr,
335 struct sock *sk = sock->sk;
392 static int __rds_create(struct socket *sock, struct sock *sk, int protocol)
397 sock_init_data(sock, sk);
398 sock->ops = &rds_proto_ops;
419 static int rds_create(struct net *net, struct socket *sock, int protocol,
422 struct sock *sk;
424 if (sock->type != SOCK_SEQPACKET || protocol)
431 return __rds_create(sock, sk, protocol);
450 static void rds_sock_inc_info(struct socket *sock, unsigned int len,
482 static void rds_sock_info(struct socket *sock, unsigned int len,