[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opensolaris-code
Subject:    Re: [osol-code] question about interrupt handling
From:       Casper.Dik () Sun ! COM
Date:       2006-11-24 19:07:27
Message-ID: 200611241907.kAOJ7STs008587 () vaticaan ! holland ! sun ! com
[Download RAW message or body]


>I am writing an application that needs to respond to input on a serial port.  The input is expecte
d very infrequently so I would like to perhaps use an interrupt rather than polling.  
>Is it correct that I must create my own driver to do interrupt handling?  If so, which one should 
I use as my starting point (this is for Solaris 8 on a Sparc)?
>
>Is there perhaps an easier way to do this (other than interrupt handling)?

If it's a standard Solaris serial port, then you can use poll
or select on the file descriptor or enable SIGIO.

Casper
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic