From owner-freebsd-hackers Mon Mar 6 17:11:50 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from oracle.dsuper.net (oracle.dsuper.net [205.205.255.1]) by hub.freebsd.org (Postfix) with ESMTP id 08D6137BDE4 for ; Mon, 6 Mar 2000 17:11:38 -0800 (PST) (envelope-from bmilekic@dsuper.net) Received: from oracle.dsuper.net (oracle.dsuper.net [205.205.255.1]) by oracle.dsuper.net (8.9.3/8.9.3) with ESMTP id UAA15512; Mon, 6 Mar 2000 20:10:58 -0500 (EST) Date: Mon, 6 Mar 2000 20:10:56 -0500 (EST) From: Bosko Milekic To: Chris Costello Cc: Zhihui Zhang , freebsd-hackers@FreeBSD.ORG Subject: Re: Where is pci_intr_establish() & _thread_sys_read()? In-Reply-To: <20000306181404.H4990@holly.calldei.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 6 Mar 2000, Chris Costello wrote: >On Monday, March 06, 2000, Zhihui Zhang wrote: >> Can anyone tell me where is the code for pci_intr_establish() and >> _thread_sys_read()? I could not find them under /usr/src. > > I can tell you offhand that _thread_sys_anything is the _real_ >syscall for `anything'. This is because a lot of syscalls are >reimplemented within libc_r for reasons that are kind of obvious >(directly calling the read syscall from one thread would block >all the other threads in a process). So _thread_sys_open() == >open(2), _thread_sys_read() == read(2), etc. > > I don't know about pci_intr_establish. > >-- >|Chris Costello >|Today's assembler command : EXOP Execute Operator >`---------------------------------------------------- > pci_intr_establish is not part of FreeBSD's interface(s), as far as I know. This probably belongs to either NetBSD or OpenBSD (since the drivers that use this routine to setup an interrupt use it under #if defined(__OpenBSD__) or __NetBSD__ blocks. See our bus interface code (e.g. bus_if.[ch]) --Bosko .......................................................................... Bosko Milekic * bmilekic@dsuper.net * http://pages.infinit.net/bmilekic/ Montreal, Quebec, Canada. * Technokratis: http://www.technokratis.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message