mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* dereferencing module-internal pointer in scripts/mod/file2alias.c
@ 2005-03-08  7:05 Dominik Brodowski
  2005-03-14 15:36 ` Rusty Russell
  0 siblings, 1 reply; 2+ messages in thread
From: Dominik Brodowski @ 2005-03-08  7:05 UTC (permalink / raw)
  To: rusty, linux-kernel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-03-16  9:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-08  7:05 dereferencing module-internal pointer in scripts/mod/file2alias.c Dominik Brodowski
2005-03-14 15:36 ` Rusty Russell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®