Skip to contentSkip to conversation

new IPC mechanism ideas

DISCUSSION Rajeev Bector 3 participants 7 messages Jul 12, 2001

lore
Share & tools
lore
#0 lore raw

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/

#1 lore raw
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

#2 lore raw

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/

#3 lore raw
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

#4 lore raw
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

#5 lore raw
In reply to H. Peter Anvin

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/

#6 lore raw
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