lkml.org 
[lkml]   [2002]   [Jan]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [RFC] x86 ELF bootable kernels/Linux booting Linux/LinuxBIOS
    Date
    On Wed, 30 Jan 2002 13:19:17 -0800, 
    Andrew Morton <akpm@zip.com.au> wrote:
    >"Eric W. Biederman" wrote:
    >> In the short term shutting down devices is trivially handled by
    >> umounting filesystems, downing ethernet devices, and calling the
    >> reboot notifier chain. Long term I need to call the module_exit
    >> routines but they need a little sorting out before I can use them
    >> during reboot. In particular calling any module_exit routing that clears
    >> pm_power_off is a no-no.
    >
    >module_exit() routines for statically-linked drivers often
    >don't exist - they're in .text.exit. I guess you can just
    >move .text.exit out of the /DISCARD/ section in vmlinux.lds.

    Sounds like a generalization of device hot plugging, which has already
    solved this problem. Turn on CONFIG_HOTPLUG and module_exit()
    functions are in .text instead of .text.exit, no need to fiddle with
    vmlinux.lds.

    -
    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/

    \
     
     \ /
      Last update: 2005-03-22 13:16    [W:0.024 / U:60.448 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site