Article View: comp.sys.next.programmer
Article #867Allocating ports in kernel servers
From: Robert Berger
Date: Wed, 09 Sep 1992 04:37
Date: Wed, 09 Sep 1992 04:37
13 lines
852 bytes
852 bytes
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?
Technical Details
Message-ID:
<BuAnI3.EnM.2@cs.cmu.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!wupost!udel!rochester!cantaloupe.srv.cs.cmu.edu!newsShow Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer Path: arc1-ca.pugleaf.net!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