lkml.org 
[lkml]   [2003]   [Dec]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: network driver that uses skb destructor
Sirotkin, Alexander wrote:
> I would like to write a network driver that uses DMA and manages it's
> own memory.
>
> The most common approach (in RX) seem to be to allocate the memory for
> DMA transfer using dev_alloc_skb(), get the HW DMA engine to transfer
> the packet into this skb buffer and later free it using dev_kfree_skb().
>
> 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.


This won't work, since you cannot chain skb destructors...

Jeff



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

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