linux-newbie.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ajith Adapa <adapa.ajith@gmail.com>
To: linux-newbie@vger.kernel.org
Subject: Regarding spin_lock_bh
Date: Tue, 5 Mar 2013 21:00:10 +0530	[thread overview]
Message-ID: <CADAe=+Ku9kOdBYY7WQin16AdrS3WvKq17g6U0Kkk6+8SSu29iw@mail.gmail.com> (raw)

Hi,

I am trying to learn Bottom halves and I have a doubt regarding usage
of spin_lock_bh. what exactly is the need for it can't we use
spin_lock ??

For E.G. in net/bridge/br_ioctl.c we use spin_lock_bh to do operations
like get and set. Can't we use spin_lock in this case ?

Regards,
Ajith
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" 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.linux-learn.org/faqs

                 reply	other threads:[~2013-03-05 15:30 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='CADAe=+Ku9kOdBYY7WQin16AdrS3WvKq17g6U0Kkk6+8SSu29iw@mail.gmail.com' \
    --to=adapa.ajith@gmail.com \
    --cc=linux-newbie@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).