Re: dereferencing module-internal pointer in scripts/mod/file2alias.c

2005-03-16 Thread Rusty Russell
On Tue, 2005-03-08 at 08:05 +0100, Dominik Brodowski wrote: > Hi, > > Is there any feasible way to dereference a pointer inside > __mod_*_device_table which points to a string? No, because we would basically need to perform relocations to do so. That is why arrays are used in the current

Re: dereferencing module-internal pointer in scripts/mod/file2alias.c

2005-03-16 Thread Rusty Russell
On Tue, 2005-03-08 at 08:05 +0100, Dominik Brodowski wrote: Hi, Is there any feasible way to dereference a pointer inside __mod_*_device_table which points to a string? No, because we would basically need to perform relocations to do so. That is why arrays are used in the current

dereferencing module-internal pointer in scripts/mod/file2alias.c

2005-03-07 Thread Dominik Brodowski
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

dereferencing module-internal pointer in scripts/mod/file2alias.c

2005-03-07 Thread Dominik Brodowski
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