Skip to contentSkip to conversation

Convert /proc to seq_file

PATCH Applied Amir Noam 2 participants 3 messages Sep 15, 2003 – Sep 20, 2003

Subsystems (4)
lore
Share & tools
lore

Amir Noam

author
#0 lore raw

PATCH 1/1 Convert /proc to seq_file

This patch converts /proc/net/bondX/info into /proc/net/bonding/bondX using the seq_file interface.

This is based on Stephen's recent patch, but slightly modified to work with the propagation patch set and with some locking changes to make it simpler.

The patch applies both on 2.4 (after the sync set from earlier today) and on 2.6 (after the propagation set from 2003/11/9).

Amir

Documentation/networking/bonding.txt +2 -2
diff -Nuarp a/Documentation/networking/bonding.txt b/Documentation/networking/bonding.txt
@@ -527,9 +527,9 @@ Verifying Bond Configuration
 
 1) Bonding information files
 ----------------------------
-The bonding driver information files reside in the /proc/net/bond* directories.
+The bonding driver information files reside in the /proc/net/bonding directory.
 
-Sample contents of /proc/net/bond0/info after the driver is loaded with 
+Sample contents of /proc/net/bonding/bond0 after the driver is loaded with 
 parameters of mode=0 and miimon=1000 is shown below.
  
         Bonding Mode: load balancing (round-robin)
drivers/net/bonding/bonding.h +1 -2
diff -Nuarp a/drivers/net/bonding/bonding.h b/drivers/net/bonding/bonding.h
@@ -101,8 +101,7 @@ typedef struct bonding {
 	struct timer_list arp_timer;
 	struct net_device_stats stats;
 #ifdef CONFIG_PROC_FS
-	struct proc_dir_entry *bond_proc_dir;
-	struct proc_dir_entry *bond_proc_info_file;
+	struct proc_dir_entry *bond_proc_file;
 	char procdir_name[IFNAMSIZ];
 #endif /* CONFIG_PROC_FS */
 	struct list_head bond_list;
drivers/net/bonding/bond_main.c +208 -148

478 lines not on this page · raw message