From owner-freebsd-current Wed Dec 20 14:37:50 2000 From owner-freebsd-current@FreeBSD.ORG Wed Dec 20 14:37:48 2000 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from genesis.k.pl (genesis.korbank.pl [195.117.162.253]) by hub.freebsd.org (Postfix) with ESMTP id 46CE237B400 for ; Wed, 20 Dec 2000 14:37:47 -0800 (PST) Received: (from ns88@localhost) by genesis.k.pl (8.11.1/8.11.1) id eBKMXir34431; Wed, 20 Dec 2000 23:33:44 +0100 (CET) (envelope-from ns88) Date: Wed, 20 Dec 2000 23:33:44 +0100 From: Tomasz Paszkowski To: Poul-Henning Kamp Cc: freebsd-current@freebsd.org Subject: Re: open in kernelspace Message-ID: <20001220233344.A66282@genesis.k.pl> References: <20001220230221.A66954@genesis.k.pl> <57110.977350253@critter> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <57110.977350253@critter>; from phk@critter.freebsd.dk on Wed, Dec 20, 2000 at 11:10:53PM +0100 Sender: ns88@genesis.k.pl Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Dec 20, 2000 at 11:10:53PM +0100, Poul-Henning Kamp wrote: > Sorry, yes... > > ktrace, various accounting and of course open(2) will be the best > places to start. > > In all likely hood you're trying to do something the wrong way > though... I'm trying to open file located on /, from kernel module. I have tried with open, but this function require arguments from user space. I have find sth easiest vn_open, but still If someone know how to use open in krenel space please tell me. -- _ _ _ _ _ / \ | | / / / \ / \ ---------- Tomasz Paszkowski --- NS88-6BONE -------- | |\ \| | \ \ |/ \||/ \| === BSD is for people who love Unix ================ /_/ \__/ /_/ \_/ \_/ --- Linux is for people who hate Microsoft --------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message