Re: [PATCH] call drv->shutdown at rmmod

From: Russell King (rmk_at_arm.linux.org.uk)
Date: 08/14/03

  • Next message: George Anzinger: "Re: 2.6.0-test3-mm1 and the -g thing."
    Date:	Thu, 14 Aug 2003 09:06:05 +0100
    To: Christoph Hellwig <hch@infradead.org>, "Eric W. Biederman" <ebiederm@xmission.com>, Pavel Machek <pavel@suse.cz>, Greg KH <greg@kroah.com>, linux-kernel@vger.kernel.org
    
    

    On Thu, Aug 14, 2003 at 08:54:43AM +0100, Christoph Hellwig wrote:
    > Why do we have shutdown at all? Can't we just call ->remove on shutdown
    > so the device always get's into proper unitialized state on shutdown, too?

    That's likely to remove the keyboard driver, and some people like
    to configure their box so that ctrl-alt-del halts the system, and
    a further ctrl-alt-del reboots the system once halted.

    There are also some bus drivers which want to know the difference
    between "device (driver) was removed" and "device was shutdown",
    eg, for setting bus-specific stuff back into a state where the
    machine can be soft-rebooted.

    With the shutdown callback, drivers get the option whether to
    handle this event or not. Combining it with remove gives them no
    option what so ever, and bus drivers loose this knowledge.

    -- 
    Russell King (rmk@arm.linux.org.uk)                The developer of ARM Linux
                 http://www.arm.linux.org.uk/personal/aboutme.html
    -
    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: George Anzinger: "Re: 2.6.0-test3-mm1 and the -g thing."

    Relevant Pages

    • Re: Common Windows XP Shutdown problem
      ... that this shutdown issue is not due to incorrect hardware drivers in my case ... other marker next to any of my Device drivers in DM. ... this shutdown problem in Windows 98 SE. ... Do some clean boot troubleshooting to ...
      (microsoft.public.windowsxp.general)
    • Re: Slooooow Shutdown;Found Problem
      ... I disabled the WIA service in the service manager and voila, ... It turns out this week I installed new drivers for my Microtek ScanMaker ... When I was diagnosing the slow hung shutdown, ... Long delay before files appear in My Computer in Windows XP ...
      (microsoft.public.windowsxp.general)
    • FOUND SOLUTION->Re: WindowsXp Slooow Shutdown;
      ... I disabled the WIA service in the service manager and voila, ... It turns out this week I installed new drivers for my Microtek ScanMaker ... When I was diagnosing the slow hung shutdown, ... Long delay before files appear in My Computer in Windows XP ...
      (microsoft.public.win32.programmer.ui)
    • Re: Huge dump files
      ... Sometimes it takes the system as much as 5 minutes to shutdown, ... be caused by old/poorly written drivers so make sure all drivers are ... Never get drivers from Windows Update. ... The motherboard mftr.'s website if hardware is onboard; ...
      (microsoft.public.windows.vista.installation_setup)
    • Re: Trouble Shutting Down
      ... tried to shutdown and it started installing an update, ... old/poorly written drivers so make sure all drivers are updated. ... then do clean-boot troubleshooting to see ...
      (microsoft.public.windowsxp.basics)