Notifying a user space application
    Christian Tröster 
    please.see.sig at gmx.de
       
    Thu Jul  1 22:33:54 EST 2004
    
    
  
Hi Stefan!
Stefan Nickl schrieb:
 > On Thu, 2004-07-01 at 00:29, Christian Tröster wrote:
 >>I'd like to notify a user space application if an interrupt occurs. I
 >>had no
 >>problems to install a custom signal handler but I am not sure what's
 >>the best
 >>way to notify the application.
 > Mostly a stripped-down ppdev.
Thanks for posting your code. It works perfectly. I only had to change
one line adding an initialization value for the spin lock.
 > /*
 >  * Open the device. It is single-open.
 >  */
 > int wfi_s_count = 0;
 > spinlock_t wfi_s_lock;
spinlock_t wfi_s_lock = SPIN_LOCK_UNLOCKED;
 > static int wfi_open (struct inode *inode, struct file *file)
 > {
 >         file->private_data = &wfi_global;
Bye, Christian
--
| Mail: c dot troester at gmx dot de | PGP-Id: FA006C74 |
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
    
    
More information about the Linuxppc-embedded
mailing list