Messages in this thread | | | Date | Tue, 23 Mar 1999 09:27:32 -0500 (EST) | From | "Benjamin C.R. LaHaise" <> | Subject | Re: 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/
| |