From owner-freebsd-hackers Wed Jul 18 11:33: 6 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from bingnet2.cc.binghamton.edu (bingnet2.cc.binghamton.edu [128.226.1.18]) by hub.freebsd.org (Postfix) with ESMTP id 4BC1737B40E for ; Wed, 18 Jul 2001 11:33:01 -0700 (PDT) (envelope-from zzhang@cs.binghamton.edu) Received: from jade (jade.cs.binghamton.edu [128.226.140.161]) by bingnet2.cc.binghamton.edu (8.11.4/8.11.4) with ESMTP id f6IIWuw28109; Wed, 18 Jul 2001 14:32:56 -0400 (EDT) Date: Wed, 18 Jul 2001 14:32:39 -0400 (EDT) From: Zhihui Zhang X-Sender: zzhang@jade To: suid Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: KLD Programming In-Reply-To: <20010718182910.902D2AE08@kjell.utb.falun.se> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Yes. But it is not easy. Look at code vfs_vnops.c. You can let a user process open a file and then push the file descriptor into kernel via a special system call. Search the mailing list archive and you will find discussions on how to add a new system call. -Zhihui On Wed, 18 Jul 2001, suid wrote: > > Godday. > > I'm quite new to KLD-programming and have a question: > > Is it possible to read/write to files from a module without > too much effort, but still staying in kernelspace? > > > /suid- > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message