public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Arun Dharankar <ADharankar@ATTBI.Com>
To: linux-kernel@vger.kernel.org
Subject: Question: sk_buff and destructor
Date: Thu, 5 Jun 2003 12:24:33 -0400	[thread overview]
Message-ID: <200306051224.33510.ADharankar@ATTBI.Com> (raw)

Greetings!

One ethernet driver I am working with, allocates sk_buff using 
dev_alloc_skb to send the received data to network layers above.
It also sets the sk_buff->dev field to its own net_device.

If the driver also sets the sk_buff->destructor to be one its
functions: can the sk_buff->dev be guaranteed to be the same
as when the destructor is called? I could not find any driver
making use of this struct member.


I am attempting to detect an sk_buff leak, almost likely in
the driver. Is there any other pointers/ideas I might be able to
use to debug this leak? I am using Linux 2.4.20.


Best regards,
-Arun.


                 reply	other threads:[~2003-06-05 16:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200306051224.33510.ADharankar@ATTBI.Com \
    --to=adharankar@attbi.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox