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.
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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
2. Programming
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
3. Programming
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
4. UNIX for Dummies Questions & Answers
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
5. Shell Programming and Scripting
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
6. Solaris
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
7. UNIX for Dummies Questions & Answers
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
8. Shell Programming and Scripting
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
LEARN ABOUT MOJAVE
posix_spawnattr_setspecialport_np
POSIX_SPAWNATTR_SETSPECIALPORT_NP(3) BSD Library Functions Manual POSIX_SPAWNATTR_SETSPECIALPORT_NP(3)
NAME
posix_spawnattr_setspecialport_np posix_spawnattr_setexceptionports_np -- set special ports on a posix_spawnattr_t
SYNOPSIS
#include <spawn.h>
int
posix_spawnattr_setspecialport_np(posix_spawnattr_t *attr, mach_port_t new_port, int which);
int
posix_spawnattr_setexceptionports_np(posix_spawnattr_t *attr, exception_mask_t mask, mach_port_t new_port, exception_behavior_t behavior,
thread_state_flavor_t flavor);
IMPORTANT
These functions represent an Apple extension to posix_spawn(2) and posix_spawnp(2), and as such should not be used by programs intending
their code to be portable to other platforms.
DESCRIPTION
The posix_spawnattr_setspecialport_np() function sets a new value for a Mach special port into the value referenced by attr to the port ref-
erenced by new_port for a port value of which, as if the new process had called task_set_special_port().
The posix_spawnattr_setexceptionports_np() function sets the Mach port to new_port for a number of exception ports represented by the bit-
field mask, and sets the new default behavior and default flavor, as if the new process had called task_set_exception_ports().
RETURN VALUES
On success, these functions return 0; on failure they return an error number from <errno.h>.
ERRORS
These functions may fail if:
[EINVAL] The value specified by attr is invalid.
[EINVAL] The value of attr is invalid.
[ENOMEM] Insufficient resources exist to set the ports.
SEE ALSO
posix_spawn(2), posix_spawnp(2), posix_spawnattr_init(3), posix_spawnattr_destroy(3)
STANDARDS
Nonstandard
HISTORY
The posix_spawnattr_setspecialport_np() and posix_spawnattr_setexceptionports_np() function calls appeared in Mac OS X.
Mac OS X August 22, 2007 Mac OS X