All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tushar Adeshara <adesharatushar@gmail.com>
To: mandy london <laborious.bee@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: the difference between irq save and the irq disable ?
Date: Tue, 6 Sep 2005 12:17:40 +0530	[thread overview]
Message-ID: <e8ac1af105090523472d2af8a7@mail.gmail.com> (raw)
In-Reply-To: <907421f905090506337ba17394@mail.gmail.com>

On 9/5/05, mandy london <laborious.bee@gmail.com> wrote:
> in my mind, irq save only store the conditions of that time ,  and the
> following code can access the shared region and change it ,so modify
> irq  states .
> 
> while , disable irq  keeps the states of interrupt unchangable .
> 
> but , I have no knowlege of the difference between code in irq save
> and irq restore and  in irq disable and irq enable ?
> 
> whethe the former can be interrupted and the later not ? only this ?

Have a look at Documentaion/cli-sti-removal.txt. As per that,
irq_enable will enable all irqs and irq_restore will bring irq status
to the one it was
before irq_save.
                            And as per my knowledge, non are
interruptible except case of RT.

> -
> 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/
> 


-- 
Regards,
Tushar
--------------------
It's not a problem, it's an opportunity for improvement. Lets improve.

      reply	other threads:[~2005-09-06  6:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-05 13:33 the difference between irq save and the irq disable ? mandy london
2005-09-06  6:47 ` Tushar Adeshara [this message]

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=e8ac1af105090523472d2af8a7@mail.gmail.com \
    --to=adesharatushar@gmail.com \
    --cc=laborious.bee@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.