help-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (no subject)


From: Marcus Brinkmann
Subject: Re: (no subject)
Date: Sun, 31 Dec 2000 14:29:13 +0100
User-agent: Mutt/1.1.4i

On Sun, Dec 31, 2000 at 03:16:54AM +0000, Jordan Curzon wrote:
> When a server/app starts up it gets a port to _____. What is it that is gets 
> a port to. Thanks.

A task doesn't have any port right automatically. You need to ask for it.
However, there are some ports you can easily get at. The most important are:

mach_thread_self() : A port to the current thread.
mach_task_self() : A port to the current task.
mach_reply_port(): Some reply port for you to use.

So, you don't get any ports to somewhere else for free.
In the Hurd, you can use get_privileged_ports to get the host privileged and
master device port (the second you can use with the device interface), but
only if you are the superuser.

There is certainly more to talk about ports and Hurd servers/apps, but maybe
the above helps you to ask your next question ;)

Thanks,
Marcus


-- 
`Rhubarb is no Egyptian god.' Debian http://www.debian.org brinkmd@debian.org
Marcus Brinkmann              GNU    http://www.gnu.org    marcus@gnu.org
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de



reply via email to

[Prev in Thread] Current Thread [Next in Thread]