From owner-freebsd-hackers Fri Mar 9 20:32:45 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id 663F937B719 for ; Fri, 9 Mar 2001 20:32:42 -0800 (PST) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 9C0946A90D; Sat, 10 Mar 2001 15:02:40 +1030 (CST) Date: Sat, 10 Mar 2001 15:02:40 +1030 From: Greg Lehey To: kaworu Cc: freebsd-hackers@freebsd.org Subject: Kernel open(2) (was: Questions about kernel space functions) Message-ID: <20010310150240.I15116@wantadilla.lemis.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from kaworu@sektor7.ath.cx on Fri, Mar 09, 2001 at 07:37:45PM -0500 Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Friday, 9 March 2001 at 19:37:45 -0500, kaworu wrote: > > Perhaps this is not the right place to post this, if so, I apoligize. This is the correct place. -questions is not. > But, I have a dilema. Is there any documentation I can find which > gives the arguments for all kernel space functions? I'm trying to > find a function similar to open(). I'm a newbie at kernel > programming. :-) Others have pointed you to section 9 of the manual. If you've looked there, you'll probably be even more confused than before. The real answer you're looking for is that there is no function similar to open() (or the other I/O functions, for that matter). The closest you'd get would be VOP_OPEN(9), but the parameters are very different from userland open(2). You'd be better off reading the Design and Implementation, or just plain doing it in userland. Greg -- Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message