Lines Matching defs:sk
21 int (*twsk_unique)(struct sock *sk,
23 void (*twsk_destructor)(struct sock *sk);
26 static inline int twsk_unique(struct sock *sk, struct sock *sktw, void *twp)
28 if (sk->sk_prot->twsk_prot->twsk_unique != NULL)
29 return sk->sk_prot->twsk_prot->twsk_unique(sk, sktw, twp);
33 static inline void twsk_destructor(struct sock *sk)
35 BUG_ON(sk == NULL);
36 BUG_ON(sk->sk_prot == NULL);
37 BUG_ON(sk->sk_prot->twsk_prot == NULL);
38 if (sk->sk_prot->twsk_prot->twsk_destructor != NULL)
39 sk->sk_prot->twsk_prot->twsk_destructor(sk);