af_iucv.c (97a4649d6ffce4a5d7f5ce018d87a6cefcb4ad03) | af_iucv.c (b24b8a247ff65c01b252025926fe564209fae4fc) |
---|---|
1/* 2 * linux/net/iucv/af_iucv.c 3 * 4 * IUCV protocol stack for Linux on zSeries 5 * 6 * Copyright 2006 IBM Corporation 7 * 8 * Author(s): Jennifer Hunt <jenhunt@us.ibm.com> --- 80 unchanged lines hidden (view full) --- 89 sock_put(sk); 90} 91 92static void iucv_sock_clear_timer(struct sock *sk) 93{ 94 sk_stop_timer(sk, &sk->sk_timer); 95} 96 | 1/* 2 * linux/net/iucv/af_iucv.c 3 * 4 * IUCV protocol stack for Linux on zSeries 5 * 6 * Copyright 2006 IBM Corporation 7 * 8 * Author(s): Jennifer Hunt <jenhunt@us.ibm.com> --- 80 unchanged lines hidden (view full) --- 89 sock_put(sk); 90} 91 92static void iucv_sock_clear_timer(struct sock *sk) 93{ 94 sk_stop_timer(sk, &sk->sk_timer); 95} 96 |
97static void iucv_sock_init_timer(struct sock *sk) 98{ 99 init_timer(&sk->sk_timer); 100 sk->sk_timer.function = iucv_sock_timeout; 101 sk->sk_timer.data = (unsigned long)sk; 102} 103 | |
104static struct sock *__iucv_get_sock_by_name(char *nm) 105{ 106 struct sock *sk; 107 struct hlist_node *node; 108 109 sk_for_each(sk, node, &iucv_sk_list.head) 110 if (!memcmp(&iucv_sk(sk)->src_name, nm, 8)) 111 return sk; --- 121 unchanged lines hidden (view full) --- 233 sk->sk_sndtimeo = IUCV_CONN_TIMEOUT; 234 sk->sk_allocation = GFP_DMA; 235 236 sock_reset_flag(sk, SOCK_ZAPPED); 237 238 sk->sk_protocol = proto; 239 sk->sk_state = IUCV_OPEN; 240 | 97static struct sock *__iucv_get_sock_by_name(char *nm) 98{ 99 struct sock *sk; 100 struct hlist_node *node; 101 102 sk_for_each(sk, node, &iucv_sk_list.head) 103 if (!memcmp(&iucv_sk(sk)->src_name, nm, 8)) 104 return sk; --- 121 unchanged lines hidden (view full) --- 226 sk->sk_sndtimeo = IUCV_CONN_TIMEOUT; 227 sk->sk_allocation = GFP_DMA; 228 229 sock_reset_flag(sk, SOCK_ZAPPED); 230 231 sk->sk_protocol = proto; 232 sk->sk_state = IUCV_OPEN; 233 |
241 iucv_sock_init_timer(sk); | 234 setup_timer(&sk->sk_timer, iucv_sock_timeout, (unsigned long)sk); |
242 243 iucv_sock_link(&iucv_sk_list, sk); 244 return sk; 245} 246 247/* Create an IUCV socket */ 248static int iucv_sock_create(struct net *net, struct socket *sock, int protocol) 249{ --- 985 unchanged lines hidden --- | 235 236 iucv_sock_link(&iucv_sk_list, sk); 237 return sk; 238} 239 240/* Create an IUCV socket */ 241static int iucv_sock_create(struct net *net, struct socket *sock, int protocol) 242{ --- 985 unchanged lines hidden --- |