new IPC mechanism ideas
Thanks for your comment, Peter. The problem with using a "driver" process is that now you need another mechanism to communicate with that driver - either message queues or shared memory or something.
Thanks,
Rajeev
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
Quoted 9 lines · Rajeev Bector
Thanks for your comment, Peter. The problem with using a "driver" process is that now you need another mechanism to communicate with that driver - either message queues or shared memory or something.
You need that anyway.
-hpa
If your driver is in the kernel, then you dont need that. All processes use system-calls (or ioctls) to send messages and when they do recv(), they get a pointer to a location (where they are mapped to via mmap) and they can read directly. In this scheme, you dont need any traditional UNIX IPC mechanism to work.
Thanks,
Rajeev
Quoted 11 lines · --- "H. Peter Anvin
Quoted 9 lines · Rajeev Bector
Thanks for your comment, Peter. The problem with using a "driver" process is that now you need another mechanism to communicate with that driver - either message queues or shared memory or something.
Quoted 3 lines
You need that anyway.
-hpa
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
Quoted 11 lines · Rajeev Bector
If your driver is in the kernel, then you dont need that. All processes use system-calls (or ioctls) to send messages and when they do
recv(), they get a pointer to a location (where they are mapped to via mmap) and they can read directly. In this scheme, you dont need any traditional UNIX IPC mechanism to work.
And the point of this is?
-hpa
Quoted 1 line · H. Peter Anvin
Rajeev Bector wrote:
[snip]
Quoted 5 lines
Quoted 3 lines
and they can read directly. In this
scheme, you dont need any traditional
UNIX IPC mechanism to work.And the point of this is?
NIH
The point is that you can do IPC using
this scheme which is
1) protected (as compared to a shared
memory (shm) scheme in which any process
can write anywhere and corrupt
everything)
2) involves only 1 copy.
Thanks,
Rajeev
Quoted 15 lines · --- "H. Peter Anvin
Quoted 11 lines · Rajeev Bector
If your driver is in the kernel, then you dont need that. All processes use system-calls (or ioctls) to send messages and when they do
recv(), they get a pointer to a location (where they are mapped to via mmap) and they can read directly. In this scheme, you dont need any traditional UNIX IPC mechanism to work.And the point of this is?
Quoted 8 lines
-hpa
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected] More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
Quoted 10 lines · Rajeev Bector
The point is that you can do IPC using
this scheme which is
1) protected (as compared to a shared
memory (shm) scheme in which any process
can write anywhere and corrupt
everything)2) involves only 1 copy.
You can still do it in user space, by having individual r/w shm mappings to the controlling process, and ro mappings to the other processes; it's still only one copy.
Introducing new forms of IPC adds to the complexity of the programming model which is already too complex. It therefore requires substandial justification (unless you're doing it as a homework project in which case you shouldn't be posting here), including presenting real-world applications which cannot be properly served by current forms of IPC.
-hpa