patch-2.1.30 linux/net/ipv4/proc.c
Next file: linux/net/ipv4/raw.c
Previous file: linux/net/ipv4/ipip.c
Back to the patch index
Back to the overall index
- Lines: 43
- Date:
Thu Mar 20 18:17:14 1997
- Orig file:
v2.1.29/linux/net/ipv4/proc.c
- Orig date:
Tue Mar 4 10:25:27 1997
diff -u --recursive --new-file v2.1.29/linux/net/ipv4/proc.c linux/net/ipv4/proc.c
@@ -79,7 +79,7 @@
* a memory timer destroy. Instead of playing with timers we just
* concede defeat and cli().
*/
- start_bh_atomic();
+ SOCKHASH_LOCK();
sp = pro->sklist_next;
while(sp != (struct sock *)pro) {
pos += 128;
@@ -128,7 +128,7 @@
sp = sp->sklist_next;
i++;
}
- end_bh_atomic();
+ SOCKHASH_UNLOCK();
begin = len - (pos - offset);
*start = buffer + begin;
@@ -138,24 +138,20 @@
return len;
}
-
int tcp_get_info(char *buffer, char **start, off_t offset, int length, int dummy)
{
return get__netinfo(&tcp_prot, buffer,0, start, offset, length);
}
-
int udp_get_info(char *buffer, char **start, off_t offset, int length, int dummy)
{
return get__netinfo(&udp_prot, buffer,1, start, offset, length);
}
-
int raw_get_info(char *buffer, char **start, off_t offset, int length, int dummy)
{
return get__netinfo(&raw_prot, buffer,1, start, offset, length);
}
-
/*
* Report socket allocation statistics [mea@utu.fi]
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov