sensors.conf: explain how to enable/disable beeps

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, May 12, 2004 at 02:46:44PM +0200, Jean Delvare wrote:
> Method #1: Pros: Fewer files, scripts can easily know if there is any
> alarm set for a channel (non-zero value). Cons: The user-space needs to
> know the meaning of the bits. The bits have to be wisely chosen once and
> for all, covering all possibilities (at lest of all chips we know of as
> of today).
> 
> Method #2: Pros: No preliminary knowledge necessary, the interface is
> self explaining. Can be easily implemented and extended. Cons: almost
> doubles the number of files in the sysfs interface.
> 
> I have no string preference (yet). Insight welcome.

I prefer method 2.  It also allows languages that can't handle bit
operations easily to access the values (like bash...)

thanks,

greg k-h



[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux