lkml.org 
[lkml]   [1999]   [Mar]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Doubt on Linux
On Tue, 23 Mar 1999, G Jalaja Devi wrote:

> Consider that the hard_start_xmit function of my module is invoked, but the
> MOD_INC_USE_COUNT is still not executed and at this point of time, rmmod
> command is issued to this driver. The cleanupmodule() will be invoked as
> the module is not in use.
>
> After unloading, if the context switches back to the hard_start_xmit(),
> it will crash, as the function does not exist.

No, hard_start_xmit must not sleep while executing -- being called from
the network bottom half, you'd get a 'scheduling in interrupt' if your
driver allowed that to happen. Also, the network layer won't send packets
to your device after it is closed.

-ben



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.030 / U:0.432 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site