lkml.org 
[lkml]   [1999]   [Feb]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectLinux Driver - Select Implementation!
When multiple applications issue a select on the same device (driver), 
Is there any way to notify only one of the application from the driver?

For ex.
Application0 Application1
fd0 = open("/dev/dev1"); fd1 = open("/dev/dev1");
select(fd0, ..); select(fd1,...)

-----------------
Kernel space

static int select(struct inode *inode, struct file *filep)
{
interruptible_sleep_on(&wq);
}

When I do a wake_up on the "wq", how *only Application0* can be notified?
(Application0 should not be notified);

Thanks,
jalaja



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.077 / U:0.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site