patch-2.2.18 linux/include/linux/proc_fs.h

Next file: linux/include/linux/sched.h
Previous file: linux/include/linux/prctl.h
Back to the patch index
Back to the overall index

diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.17/include/linux/proc_fs.h linux/include/linux/proc_fs.h
@@ -213,6 +213,7 @@
 	PROC_SCSI_I2O,
 	PROC_SCSI_3W_XXXX,
 	PROC_SCSI_USB_SCSI,
+	PROC_SCSI_CPQFCTS,
 	PROC_SCSI_SCSI_DEBUG,	
 	PROC_SCSI_NOT_PRESENT,
 	PROC_SCSI_FILE,                        /* I'm assuming here that we */
@@ -436,6 +437,12 @@
 					 struct proc_dir_entry *parent);
 void remove_proc_entry(const char *name, struct proc_dir_entry *parent);
 
+#define create_proc_info_entry(n, m, b, g) \
+	{ \
+		struct proc_dir_entry *r = create_proc_entry(n, m, b); \
+		if (r) r->get_info = g; \
+	}
+
 /*
  * proc_tty.c
  */
@@ -463,6 +470,13 @@
 	return NULL;
 }
 
+#define create_proc_info_entry(n, m, b, g) \
+	{ \
+		struct proc_dir_entry *r = create_proc_entry(n, m, b); \
+		if (r) r->get_info = g; \
+	}
+
+
 extern inline void remove_proc_entry(const char *name, struct proc_dir_entry *parent) {};
 
 extern inline void proc_tty_register_driver(struct tty_driver *driver) {};
@@ -471,4 +485,7 @@
 extern struct proc_dir_entry proc_root;
 
 #endif /* CONFIG_PROC_FS */
+
+#define proc_mkdir(buf, usbdir)	create_proc_entry(buf, S_IFDIR, usbdir)
+
 #endif /* _LINUX_PROC_FS_H */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)