[lkml]   [2000]   [Oct]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRE: getting "struct pci_dev" from "struct netdevice"
> Doesn't work for all devices.  Also since base_addr is truncated to
> 16-bits when passed to ifconfig, this gets even nastier for userspace.

You do the best you can with what's available :)

> ...and noone but the driver can trust this information to be pointing to
> an up-to-date struct netdevice.

Shame, perhaps this can be enforced as part of the new pci api.

> Since struct pci_dev is probably going to morph into a more generic
> struct hw_dev, maybe struct netdevice needs a pci_dev member...

Would be nice, or perhaps netdevice should expose a function to return
the information and let the driver provide the specifics.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:39    [W:0.051 / U:0.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site