Lines Matching refs:sock
28 #include <net/sock.h>
38 * TCP_CLOSE sock not in use yet
45 * - sk_state, ackq, hlist: sock lock needed
85 static int pep_reply(struct sock *sk, struct sk_buff *oskb,
112 static int pep_accept_conn(struct sock *sk, struct sk_buff *skb)
133 static int pep_reject_conn(struct sock *sk, struct sk_buff *skb, u8 code)
142 static int pep_ctrlreq_error(struct sock *sk, struct sk_buff *oskb, u8 code,
171 static int pipe_snd_status(struct sock *sk, u8 type, u8 status, gfp_t priority)
200 static void pipe_grant_credits(struct sock *sk)
225 static int pipe_rcv_status(struct sock *sk, struct sk_buff *skb)
277 static int pipe_rcv_created(struct sock *sk, struct sk_buff *skb)
304 /* Queue an skb to a connected sock.
306 static int pipe_do_rcv(struct sock *sk, struct sk_buff *skb)
432 /* Destroy connected sock. */
433 static void pipe_destruct(struct sock *sk)
441 static int pep_connreq_rcv(struct sock *sk, struct sk_buff *skb)
443 struct sock *newsk;
499 /* Create a new to-be-accepted sock */
534 /* Listening sock must be locked */
535 static struct sock *pep_find_pipe(const struct hlist_head *hlist,
540 struct sock *sknode;
561 * Deliver an skb to a listening sock.
563 * We then queue the skb to the right connected sock (if any).
565 static int pep_do_rcv(struct sock *sk, struct sk_buff *skb)
568 struct sock *sknode;
625 static void pep_sock_close(struct sock *sk, long timeout)
636 struct sock *sknode;
652 static int pep_wait_connreq(struct sock *sk, int noblock)
681 static struct sock *pep_sock_accept(struct sock *sk, int flags, int *errp)
684 struct sock *newsk = NULL;
719 static int pep_ioctl(struct sock *sk, int cmd, unsigned long arg)
744 static int pep_init(struct sock *sk)
755 static int pep_setsockopt(struct sock *sk, int level, int optname,
804 static int pep_getsockopt(struct sock *sk, int level, int optname,
834 static int pipe_skb_send(struct sock *sk, struct sk_buff *skb)
859 static int pep_sendmsg(struct kiocb *iocb, struct sock *sk,
937 int pep_writeable(struct sock *sk)
944 int pep_write(struct sock *sk, struct sk_buff *skb)
975 struct sk_buff *pep_read(struct sock *sk)
984 static int pep_recvmsg(struct kiocb *iocb, struct sock *sk,
1042 static void pep_sock_unhash(struct sock *sk)
1045 struct sock *skparent = NULL;
1057 /* Unhash a listening sock only when it is closed