Re: [Linux-diag-devel] accessing PCI configs
                
                Brought to you by:
                
                    hegdevasant,
                    
                
                    mananth
                    
                
            
            
        
        
        
    | 
     
      
      
      From: Jon S. <jon...@ya...> - 2004-01-05 04:43:56
      
     
   | 
Hotplug events return strings like this:
/class/dri/card0
None of the APIs take this directly.  Since libsysfs will commonly be used with
hotplug events it would be nice if the lib could open this string directly.
Maybe we need a sysfs_open_classdev("/class/dri/card0") call.
--- Ananth N Mavinakayanahalli <an...@in...> wrote:
> struct sysfs_class_device *class_device = 
> 				sysfs_open_class_device("dri", "card0");
> struct sysfs_device *device = sysfs_get_classdev_device(class_device);
> struct sysfs_attribute *attr =  sysfs_get_device_attr(device, "config");
=====
Jon Smirl
jon...@ya...
__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
 |