Re: how to disable interrupt in application?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
To: "zhuzhenhua" <zzh.hust@xxxxxxxxx>
Cc: "linux-mips" <linux-mips@xxxxxxxxxxxxxx>
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@xxxxxxxxx> 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
> >
> >
> 
> 


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux