Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: "Kevin D. Kissell" <KevinK@mips.com>
To: "Bin Chen" <binary.chen@gmail.com>, "zhuzhenhua" <zzh.hust@gmail.com>
Cc: "linux-mips" <linux-mips@linux-mips.org>
Subject: Re: how to disable interrupt in application?
Date: Wed, 31 May 2006 08:58:16 +0200	[thread overview]
Message-ID: <002a01c6847f$98409480$0602a8c0@Ulysses> (raw)
In-Reply-To: 5800c1cc0605302311p2d1f024bm96ac6e08cda1bc2f@mail.gmail.com

sigprocmask manages signals, which are user-mode abstractions
of exceptions.  It does not affect hardware interrupt behavior.
If by "uninterruptable", ZhuZhenHua means that the decoder
process will not get switched out in favor of another user-mode
process, then getpriority()/setpriority() provide some control
that may be sufficient.  If what is desired is that hardware interrupts
are actually masked during some critical sequence, the critical
sequence must be executed with kenel privilege - you need to
look at putting the critical sequence into a driver or other loadable
kernel module that can be invoked by the application code.

            Regards,

            Kevin K.

----- Original Message ----- 
From: "Bin Chen" <binary.chen@gmail.com>
To: "zhuzhenhua" <zzh.hust@gmail.com>
Cc: "linux-mips" <linux-mips@linux-mips.org>
Sent: Wednesday, May 31, 2006 8:11 AM
Subject: Re: how to disable interrupt in application?


> man sigprocmask
> 
> On 5/31/06, zhuzhenhua <zzh.hust@gmail.com> wrote:
> > our project have a video decoder code run as application. there is
> > some short code want to be run uninterruptable. is there anyway to do
> > it?
> > thanks for any hints
> > Best Regards
> >
> >
> > zhuzhenhua
> >
> >
> 
> 

  reply	other threads:[~2006-05-31  7:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-31  0:33 how to disable interrupt in application? zhuzhenhua
2006-05-31  6:11 ` Bin Chen
2006-05-31  6:58   ` Kevin D. Kissell [this message]
2006-05-31  7:37     ` zhuzhenhua
2006-05-31  9:39       ` Kevin D. Kissell
2006-05-31  7:02   ` Freddy Spierenburg

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='002a01c6847f$98409480$0602a8c0@Ulysses' \
    --to=kevink@mips.com \
    --cc=binary.chen@gmail.com \
    --cc=linux-mips@linux-mips.org \
    --cc=zzh.hust@gmail.com \
    /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