dereferencing module-internal pointer in scripts/mod/file2alias.c
From: Dominik Brodowski
Date: Tue Mar 08 2005 - 02:14:50 EST
Hi,
Is there any feasible way to dereference a pointer inside
__mod_*_device_table which points to a string?
e.g.:
include/linux/mod_devicetable.h:
struct pcmcia_device_id {
...
const char * prod_id;
...
}
drivers/some/driver.c:
static struct pcmcia_device_id some_ids[] = {
{.prod_id = "some device string", ...},
...
}
MODULE_DEVICE_TABLE(some_ids);
scripts/mod/file2alias.c:
do_pcmcia_entry (..., struct pcmcia_device_id *id, ...)
{
const char *tmp = id->prod_id + SOME_MAGIC_VALUE;
}
Thanks,
Dominik
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/