I guess you mean Kernel Module. If that is so then you can always access the struct from your module. After the module is insmoded you can access kernel data structures.
HTH,
Pranjal
On 5/21/06, Greg KH <greg@xxxxxxxxx> wrote:
On Sun, May 21, 2006 at 11:06:50AM +1000, Myrto Zehnder wrote:
> In my project, I have to get access to fields of: const struct pci_device_id
> *id_table
>
>
> /* struct pci_driver
> * {
> * const char *name
> * const struct pci_device_id *id_table
> * int (*probe) (struct pci_dev *dev, const struct pci_device_id *id)
> * void (*remove) (struct pci_dev *dev)
> * }
> */
>
> How do I get access in my User Level Module?
modinfo my_module_name | grep pci:
will show you all of the pci_device_id for that module.
What do you need it for?
thanks,
greg k-h
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/