[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20071023054214.GI5708@rhun.ibm.com>
Date: Tue, 23 Oct 2007 07:42:14 +0200
From: Muli Ben-Yehuda <muli@...ibm.com>
To: Yakov Lerner <iler.ml@...il.com>
Cc: netdev@...r.kernel.org
Subject: Re: attach additional value to skb
On Mon, Oct 22, 2007 at 10:03:47PM +0200, Yakov Lerner wrote:
> I want to add my custom destructor to the skb, the function pointer
> to be called at skb destruction time. Will the following work: if I
> push address of my_destructor to the
> sk-buff->destructor field, and then when my_destructor
> is called, I call the (saved) old value of sk-buff->destructor ?
> Will this work ?
It might, provided nothing else runs after you that will unilaterally
change the ->destructor field. I.e., it depends at which point in the
skb's life-time you set your hook.
Cheers,
Muli
--
SYSTOR 2007 --- 1st Annual Haifa Systems and Storage Conference 2007
http://www.haifa.il.ibm.com/Workshops/systor2007/
Virtualization workshop: Oct 29th, 2007 | Storage workshop: Oct 30th, 2007
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists