Re: Allow userspace do something special on overtemp

From: Måns Rullgård (mru_at_kth.se)
Date: 08/11/04

  • Next message: Stephan von Krawczynski: "Re: PATCH: cdrecord: avoiding scsi device numbering for ide devices"
    To: linux-kernel@vger.kernel.org
    Date:	Wed, 11 Aug 2004 11:18:49 +0200
    
    

    Arjan van de Ven <arjanv@redhat.com> writes:

    > On Wed, 2004-08-11 at 10:53, Pavel Machek wrote:
    >> Hi!
    >>
    >> This patch cleans up thermal.c a bit, and adds possibility to react to
    >> critical overtemp: it tries to call /sbin/overtemp, and only if that
    >> fails calls /sbin/poweroff.
    >
    > why not call /sbin/hotplug ????

    Good idea, then udev could create /dev/blowtorch so some other program
    can do ioctl(SCSI_STOP) (or just run cdrecord dev=6,6,6 -eject).
    Besides, it is called HOTplug for a reason.

    Seriously, though, isn't hotplug supposed to handle plugging and
    unplugging of hardware, rather than any random events detected by the
    kernel?

    -- 
    Måns Rullgård
    mru@kth.se
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Stephan von Krawczynski: "Re: PATCH: cdrecord: avoiding scsi device numbering for ide devices"

    Relevant Pages

    • Re: Allow userspace do something special on overtemp
      ... On Wed, 2004-08-11 at 10:53, Pavel Machek wrote: ... > This patch cleans up thermal.c a bit, and adds possibility to react to ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: udev sysfs docs Re: State of devfs in 2.6?
      ... /dev is just a normal directory ... The naive solution ... My guess is, unfortunately, udev probably won't handle this any time ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: dynamic /dev security hole?
      ... On Mon, 9 Aug 2004, Alan Cox wrote: ... udev would chown your ... linked copy (before unlinking the original device node), ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: DevFS vs. udev
      ... On Wed, 2003-12-24 at 03:07, Greg KH wrote: ... cool - please post if you have something a bit before next udev ... Gentoo Linux Developer, Desktop/System Team Developer ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [ANNOUNCE] udev 021 release
      ... Now with udev I'll never get /dev/dsp in the first place and there's ... file creation. ... tarball into /dev before starting udevd? ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)