Re: network driver that uses skb destructor
On Mon, 29 Dec 2003 18:47:38 +0200, Alexander Sirotkin wrote:
> I would like to write a network driver that uses DMA and manages
> it's own memory.
>[...]
> For various reasons (mainly to support legacy source code) I would like
> to allocate and free the buffer using my own functions. Theoretically,
> I could get away by using skb->destructor.
>[...]
> Anybody tried to implement similar approach ?
> Any thoughts why this would (or would not) work ?
It should work, IMHO. Check how AF_UNIX does it.
I might note that reusing WinCE or such too literally always
caused crappage in my experience. You might want to ponder
if it is worth bothering.
-- Pete
|