All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Passing data from device init to open function
@ 2007-10-10 11:37 Johan Borkhuis
  2007-10-11  7:25 ` Johan Borkhuis
  0 siblings, 1 reply; 4+ messages in thread
From: Johan Borkhuis @ 2007-10-10 11:37 UTC (permalink / raw)
  To: Xenomai-help

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



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

end of thread, other threads:[~2007-10-12  7:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-10 11:37 [Xenomai-help] Passing data from device init to open function Johan Borkhuis
2007-10-11  7:25 ` Johan Borkhuis
2007-10-11 13:51   ` Jan Kiszka
2007-10-12  7:38     ` Johan Borkhuis

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.