Show
Ignore:
Timestamp:
09/21/07 14:15:18 (7 years ago)
Author:
khali
Message:

Scan chip features only once at initialization time, rather than on
each update. The chip list and chip features do not change until
sensors_cleanup() is called, so there's no point in doing the
same work over and over again.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/branches/lm-sensors-3.0.0/prog/sensord/sensord.h

    r4825 r4828  
    9696 
    9797typedef struct { 
     98  const sensors_chip_name *name; 
    9899  FeatureDescriptor *features; 
    99100} ChipDescriptor; 
    100101 
    101 extern ChipDescriptor * generateChipDescriptor (const sensors_chip_name *chip); 
     102extern ChipDescriptor * knownChips; 
     103extern int initKnownChips (void); 
     104extern void freeKnownChips (void);