home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.next.programmer
- Path: sparky!uunet!wupost!udel!rochester!cantaloupe.srv.cs.cmu.edu!news
- From: rwb@alexander.VI.RI.CMU.EDU (Robert Berger)
- Subject: Allocating ports in kernel servers
- Message-ID: <BuAnI3.EnM.2@cs.cmu.edu>
- Sender: news@cs.cmu.edu (Usenet News System)
- Nntp-Posting-Host: alexander.vi.ri.cmu.edu
- Organization: School of Computer Science, Carnegie Mellon
- Date: Wed, 9 Sep 1992 04:37:13 GMT
- Lines: 13
-
-
- How do I allocate a port from within a kernel server? The documention
- for hmap lists the following:
-
- /* Create the port. */
- r = port_allocate((task_t)task_self(), &port_name);
-
- which can't possibly work, since task_self is not defined in the kernel.
-
- I tried various combinations of current_task() and convert_task_to_port(),
- none of which worked.
-
- Could someone who has done this tell me how?
-