]> git.hungrycats.org Git - linux/commit
[ATM]: seq_file for /proc/net/atm (arp) [6/8] (from romieu@fr.zoreil.com)
authorChas Williams <chas@cmf.nrl.navy.mil>
Thu, 11 Sep 2003 11:21:05 +0000 (04:21 -0700)
committerHideaki Yoshifuji <yoshfuji@linux-ipv6.org>
Thu, 11 Sep 2003 11:21:05 +0000 (04:21 -0700)
commitc330a7d88e1b6a7fa5729ec2de478d31bf93f60e
tree6aa02b1ab02dd6db8921f1694998bcb30f242420
parent535e2c6a48b4bf75103b2eb5cae73e9355b6e696
[ATM]: seq_file for /proc/net/atm (arp) [6/8] (from romieu@fr.zoreil.com)

seq_file support for /proc/net/atm/arp:
- svc_addr/atmarp_info(): seq_printf/seq_putc replace sprintf and friends;
- arp_getidx/arp_vcc_walk() take care of the usual seq_file cursor
  positionning: they both return NULL until the cursor has reached its
  position. struct atm_arp_state is updated accordingly;
- arp_seq_{stop/start} are responsible for clip_tbl_hook (un)locking;
- module refcounting is done in arp_seq_open()/arp_seq_release();
- atm_lec_info() is removed.

Chas's suggestions applied since last version:
- atm_arp_xxx renamed to arp_xxx;
- atm_seq_arp_fops renamed to arp_seq_fops.

Chas didn't ask for it but I renamed arp_vc_walk to arp_vcc_walk.
net/atm/proc.c