[2093] in linux-net channel archive

home help back first fref pref prev next nref lref last post

Re: modularizing some of the net code

daemon@ATHENA.MIT.EDU (Alan Cox)
Thu Mar 14 18:47:30 1996

From: iialan@iifeak.swan.ac.uk (Alan Cox)
To: tdyas@eden.rutgers.edu (Tom Dyas)
Date: 	Thu, 14 Mar 1996 11:09:31 +0000 (GMT)
Cc: linux-net@vger.rutgers.edu
In-Reply-To: <CMM-RU.1.5.826688325.tdyas@er5.rutgers.edu> from "Tom Dyas" at Mar 12, 96 10:38:45 pm

> Obviously, the usage count should be increased and decreased when a
> socket is created and then later released (at the point of the kfree).
> However, should the usage count be increased when interfaces and/or
> routes are created and destroyed? It seems that they should be, but I
> am not really sure.

Whenever an interface is active with packets for that device, whenever
there are sk_buffs owned by the protocol.

> In other words, any specific "criteria" to keep in mind?

Your cleanup will need to be smart enough to make sure it flushes every
internal queue it owns properly (with interrupts off I guess) during the
unload.

Alan



home help back first fref pref prev next nref lref last post