From: Johan Borkhuis <j.borkhuis@domain.hid>
To: Xenomai-help@domain.hid
Subject: [Xenomai-help] Passing data from device init to open function
Date: Wed, 10 Oct 2007 13:37:24 +0200 [thread overview]
Message-ID: <470CB974.6040605@domain.hid> (raw)
Hello,
I am facing the following problem. During device initialization I am
filling a structure with device specific data. This structure is
provided to the Linux driver using pci_set_drvdata. Now I want my
Xenomai driver to have access to this data as well.
I am planning to use the dev_private area for this, and have it contain
a pointer to the same structure. The rtdm_dev_context structure is only
available after the open call and not in the device init function. So I
am searching for a safe way to transfer data from the device init
function to the open function.
Is there a way to transfer data from the device init function to the
open (or other) functions in such a way that it is possible to have
multiple devices that can be opened multiple times?
Kind regards,
Johan Borkhuis
next reply other threads:[~2007-10-10 11:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-10 11:37 Johan Borkhuis [this message]
2007-10-11 7:25 ` [Xenomai-help] Passing data from device init to open function Johan Borkhuis
2007-10-11 13:51 ` Jan Kiszka
2007-10-12 7:38 ` Johan Borkhuis
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=470CB974.6040605@domain.hid \
--to=j.borkhuis@domain.hid \
--cc=Xenomai-help@domain.hid \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.