Netdev List
 help / color / mirror / Atom feed
From: "홍신 shin hong" <hongshin@gmail.com>
To: netdev@vger.kernel.org
Subject: a question on packet_sock struct
Date: Wed, 12 Aug 2009 15:43:59 +0900	[thread overview]
Message-ID: <2014bcab0908112343x68d758e7x132f86b951093e12@mail.gmail.com> (raw)

Hi. I have a question on packet_sock struct
defined in net/packet/af_packet.c of Linux 2.6.30.4.

Is it necessary to hold a packet_sock's bind_lock
before accessing its ifindex field?

According to the definition of packet_sock struct,
it seems that an access to ifindex field should be
synchronized by the bind_lock.

However, according to the its usage in the code,
ifindex accesses are not consistently protected
by the bind_lock.

Thank you

Sincerely
Shin Hong

                 reply	other threads:[~2009-08-12  6:43 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=2014bcab0908112343x68d758e7x132f86b951093e12@mail.gmail.com \
    --to=hongshin@gmail.com \
    --cc=netdev@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