From: Dominik Brodowski <linux@dominikbrodowski.net>
To: rusty@rustcorp.com.au, linux-kernel@vger.kernel.org
Subject: dereferencing module-internal pointer in scripts/mod/file2alias.c
Date: Tue, 8 Mar 2005 08:05:22 +0100 [thread overview]
Message-ID: <20050308070522.GA5435@isilmar.linta.de> (raw)
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
next reply other threads:[~2005-03-08 7:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-08 7:05 Dominik Brodowski [this message]
2005-03-14 15:36 ` Rusty Russell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050308070522.GA5435@isilmar.linta.de \
--to=linux@dominikbrodowski.net \
--cc=linux-kernel@vger.kernel.org \
--cc=rusty@rustcorp.com.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®