home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / next / programm / 6063 < prev    next >
Encoding:
Text File  |  1992-09-08  |  828 b   |  25 lines

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