[lkml]   [2003]   [Apr]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: calling context of unregister_netdev
    "Prasanta Sadhukhan" <> wrote:
    > So my question is whether we can call unregister_netdev() function from
    > interrupt context(i.e, in ISR process context)

    No, you cannot.

    This is a bug which occurs in multiple places in the pcmcia code. usually it
    is doing illegal things from within timer handlers. In your case, within
    hard IRQ context.

    Your fix (using schedule_task()) is fine. It is the preferred way to resolve
    this bug.

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

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