Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!sun-barr!cs.utexas.edu!uunet!mcsun!hp4nl!orcenl!hbergh From: hbergh@oracle.nl (Herbert van den Bergh) Newsgroups: comp.unix.aix Subject: getpid() kernel service Keywords: getpid kernel extension Message-ID: <1011@nlsun1.oracle.nl> Date: 8 Oct 90 15:53:52 GMT Organization: Oracle Europe, The Netherlands Lines: 32 Hi there, I'm using an IBM RISC System/6000 with AIX 3.1 9021 + July update. I'm currently writing a kernel extension. This is a routine which will be loaded into the kernel after the system is booted and can be called like a system call from user processes. In the manual, and in Info, a kernel service routine getpid() is mentioned which returns the process id of the process executing the kernel extension. However, this routine is not included in /lib/kernex.exp. My questions are: Can I just add getpid to /lib/kernex.exp, so I can bind my kernel extension? Or can I make my own .exp file with #! /unix getpid in there? Why was it not in /lib/kernex.exp? Is there a problem with it? Shouldn't I be using it? I tried accessing the u-block directly from my kernel extension, but the binder couldn't resolve the external reference to it either. I need an answer real soon. Thanks in advance. -- Herbert van den Bergh, ORACLE Europe hbergh@oracle.nl, hbergh@oracle.com Rijnzathe 6, NL-3454 PV De Meern uunet!mcsun!orcenl!hbergh Phone: +31-3406-94211