do_map_probe and driver name
Ralph Siemsen
ralphs at netwinder.org
Mon May 16 08:55:32 EDT 2005
Please don't post the same message to multiple mailing lists.
Munira Ahmed wrote:
> do_map_probe requires name of a driver to probe.
> Now how do I know the names of mtd drivers to see if I have them or not
> How do I find out which driver is currently active
> is there any list of all or some driver names.
The answer can be found easily by searching for calls to do_map_probe in
the kernel/drivers/mtd subdirectories. For example in physmap.c:
static const char *rom_probe_types[] = {
"cfi_probe", "jedec_probe", "map_rom", NULL
};
const char **type = rom_probe_types;
for(; !mymtd && *type; type++) {
mymtd = do_map_probe(*type, &physmap_map);
}
So you can ee it is called with names like "cfi_probe" etc. These
functions are defined drivers/mtd/chips directory. So take a look at
the files in that directory to discover the names you seek.
-R
More information about the linux-mtd
mailing list