Mach IPC


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Mach IPC
# 1  
Old 11-14-2010
Mach IPC

hey everyone,
I'm reading a tutorial on the Mach kernel principles, however, the port and port rights part are kind of confusing to me. I don't know if the book has typos or something but it seems a bit contradictory. It says that "ports, themselves, are not named. It is the port rights that are" and then it later says that "a port is specified by a port name", so how can a port have a port name if the ports themselves aren't named. If anyone can clarify this for me I would greatly appreciate it. Also just to be absolutely certain, is the "port' sort of like an endpoint while the "port right" is like a channel to that endpoint?
thanks in advance Smilie
# 2  
Old 11-21-2010
please help Smilie Smilie Smilie
# 3  
Old 11-22-2010
The Mach kernel went though a number of major redesigns between V1 in 1986 (VAX 11/784, IBM PC RT, Sun 3) and v3.0 in 1989 which was the basis for the OSF/1 effort. For example, Mach 2.5 was a large monolithic kernel containing substantial amounts of BSD code whereas Mach 3 on the other hand was closer to a true microkernel. Kernel ports had slightly different capabilities in each version and different terminology was also used at times in the various versions and technical literature.

Perhaps if you gave us a pointer to the tutorial that you have read, somebody on this forum would be prepared to help you. My hunch is that "port name" is actually referring to "capability name" but without seeing the tutorial you are referring to, I cannot be certain.
# 4  
Old 11-22-2010
The name of the tutorial is "Mach kernel principles" which deals with the Mach 3 kernel

http://www.shakthimaan.com/downloads...principles.pdf

Last edited by neur0n; 11-24-2010 at 01:33 PM..
# 5  
Old 11-24-2010
so can anyone help me?
# 6  
Old 11-24-2010
I checked that document for the phrase "a port is specified by a port name" but could not find such a phrase.

What the document does say is:
Quote:
Ports and port rights do not have system-wide names that allow arbitrary ports or rights
to be manipulated directly. Ports can be manipulated only via port rights, and port rights
can be manipulated only when they are contained within a port name space. A port right
is specified by a port name which is an index into a port name space.
and this is correct.

Are you sure you understand the concept of namespaces?
# 7  
Old 11-24-2010
It's on page 36 under the port name space heading. I understand the concepts of namespaces which is just like a container for holding object names, so that objects in different namespaces are allowed to have the same name...etc, but this Mach port concepts is still a bit confusing to me.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

egrep line with perfect mach

Hi Input File A L006 AL01 0 (OCK) L006 A006 0 (OCK) L011 AR11 1 (NLOCK) Input File B L006 AL01 0 (OCK) L006 A006 0 (OCK) Need Egrep Command for perfect Match Thanks (4 Replies)
Discussion started by: asavaliya
4 Replies

2. UNIX for Dummies Questions & Answers

Mach drivers

hello everyone, can anyone tell me what drivers the Mach kernel works with. I'm thinking about experimenting with the Mach kernel, and yes I know there are other kernels that are easier to work with but I just want to use the Mach kernel. So with that being said, can the Mach kernel work with... (11 Replies)
Discussion started by: neur0n
11 Replies

3. Solaris

errors on Netra-440: "IPC Warning: ipc: tcp_protocol: bad magic number"

I was asked to look into a problem with a Sun Netra 440 in another department. On the server in question, the relevant 'uname -a' information is, "SunOS host1 5.9 Generic_118558-16 sun4u sparc SUNW,Netra-440". That information aside, while the other admin is logged into the ALOM, these errors are... (0 Replies)
Discussion started by: Borealis
0 Replies

4. Shell Programming and Scripting

Help to mach "usb" exactly with sed or awk

HI experts I updated my question here to eg: $cat file ABC: abc ABC FDFD USB: usb usb_name usb_disk usbdriver USB PA: PA pa paa I want to how many usb exactly matched(not match usb_name or usbdriver) in the line cotains"USB:" thanks in advance (19 Replies)
Discussion started by: yanglei_fage
19 Replies

5. UNIX for Dummies Questions & Answers

Compiling Mach 3.0 Kernel

Hi, I am very new to this. I would like to compile the Mach 3.0 kernel. Can someone explain, step-by-step, how to turn all the Mach 3.0 kernel code into a single binary file that will run directly on an x86 computer? Also, once (and if) I get it working, what software works on it? My goal is... (2 Replies)
Discussion started by: dublinus
2 Replies

6. Programming

[C] Problem with IPC

Hi! I'm trying to write this program: in my intentions it should get a message and send it to a second process (pid_upost), then to a third process (pid1, pid2, pid3, depending on the choice made when a new message is inserted). This program should write the message in a file (message1, message2 or... (1 Reply)
Discussion started by: Kaminski
1 Replies

7. Programming

state mach{ne...

hi, I am looking for some info on how can we implement state machines. Conceptually it appears to be good but while implementing it causes lot of confusion.. I have some doubts regarding this concept. (my explanation may look wired, as I am also not clear on this front) The commonly... (2 Replies)
Discussion started by: parasa
2 Replies

8. UNIX for Dummies Questions & Answers

Ipc

I have a parent that is passing data to child A and then child A has to process it and pass to child B. I am able to pass the data to child A but am not able to pass it to child B. Child B seems to only be receiving the last data instead of the whole data. I saw one example in a book but it uses... (1 Reply)
Discussion started by: scmay
1 Replies
Login or Register to Ask a Question