Re: brk interrupt in serial port

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

 



Hi,

Thanks ,
Here brk interrupt is not interrupt perse. We have do the  polling of the
status register in the UART. Should the polling be done as a
kernel module or user module?
Thanks in advance

Rgds
Narendra


----- Original Message ----- 
From: "Krishnakumar. R" <krishnakumar@naturesoft.net>
To: "Narendra Kulkarni" <narendra@spacomp.com>
Sent: Monday, February 02, 2004 16:00
Subject: Re: brk interrupt in serial port


> Hello,
>
> If you are sure that an interrupt will be generated,
> then, you should go for it in the kernel.
>
> If you are going for interrupt driven approach,
> the code in the kernel should contain the
> registering of the interrupt (the interrupt which would
> be raised) and proper interupt handler function code.
>
> Another way would be to do polling.
> Where you check the status of the registers
> from the userland module or the kernel module.
> When status indicates that interupt has occured then
> you can do the necessary work.
>
> Hope this might be of some help to you.
> Regards,
> KK.
>
>
> On Monday 02 February 2004 15:36, Narendra Kulkarni wrote:
> > Hello all,
> >
> > I dont know whether this question should be asked here or not ?
> >
> > We are developing a  product (Linux based touchscreen).   The rxd line
of
> > the serial port has been kept at zero for a complete character time so
as
> > to generate a brk interrupt. I want to trap the brk interrupt on the
serial
> > port. Should we write a kernel module or user module to check whether
the
> > interrupt has occured or not.
> >
> >
> > Thanks in advance
> >
> > Rgds
> > Narendra
> > SPA Computers Ltd,
> > 2010, 100 Ft Road,
> > HAL 2nd Stage,
> > Indiranagar,
> > Bangalore 560008
> >
> > Tel : +91-80-25265348/25267981/25268469
> > Fax : +91-80-25260818
> > www.spacomp.com
>
> -- 
> HomePage: http://puggy.symonds.net/~krishnakumar
>
>
>


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux