mtd/include/linux/mtd partitions.h,1.11,1.12

David Woodhouse dwmw2 at infradead.org
Fri May 16 12:06:47 EDT 2003


Update of /home/cvs/mtd/include/linux/mtd
In directory phoenix.infradead.org:/tmp/cvs-serv24902/include/linux/mtd

Modified Files:
	partitions.h 
Log Message:
New partition probing stuff

Index: partitions.h
===================================================================
RCS file: /home/cvs/mtd/include/linux/mtd/partitions.h,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- partitions.h	18 Feb 2003 20:53:55 -0000	1.11
+++ partitions.h	16 May 2003 16:06:44 -0000	1.12
@@ -68,5 +68,24 @@
                                     struct mtd_partition **pparts,
                                     const char *mtd_id);
 
+
+struct mtd_part_parser {
+	struct list_head list;
+	struct module *owner;
+	const char *name;
+	int (*parse_fn)(struct mtd_info *, struct mtd_partition **, unsigned long);
+};
+
+extern struct mtd_part_parser *get_partition_parser(const char *name);
+extern int register_mtd_parser(struct mtd_part_parser *parser);
+extern int deregister_mtd_parser(struct mtd_part_parser *parser);
+extern int parse_mtd_partitions(struct mtd_info *master, const char **types, 
+				struct mtd_partition **pparts, unsigned long origin);
+
+static inline void put_partition_parser(struct mtd_part_parser *p)
+{
+	module_put(p->owner);
+}
+
 #endif
 




More information about the linux-mtd-cvs mailing list