From owner-freebsd-hackers@FreeBSD.ORG Tue Feb 7 16:20:51 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 42FFE16A420 for ; Tue, 7 Feb 2006 16:20:51 +0000 (GMT) (envelope-from pranav.sawargaonkar@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4245D43D45 for ; Tue, 7 Feb 2006 16:20:49 +0000 (GMT) (envelope-from pranav.sawargaonkar@gmail.com) Received: by wproxy.gmail.com with SMTP id i5so1498022wra for ; Tue, 07 Feb 2006 08:20:49 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=k0SFvTyJvnYL5yGNyEpL8uxD0cy7L0JtgHZYXrnkK8RPJhbZbb+y7DO32vLr1oKqlOZw8DuT1C1pD75QxhgyYQjdKkcTUBrLaf5kqumIbrJePK4vXntcqHTzohpsaT4XB3KTgK1SZgh+YE4MluKnp6kFtWAA5GghV8kYwNbtp4M= Received: by 10.54.81.18 with SMTP id e18mr8899306wrb; Tue, 07 Feb 2006 08:20:48 -0800 (PST) Received: by 10.54.124.14 with HTTP; Tue, 7 Feb 2006 08:20:48 -0800 (PST) Message-ID: <5007e1a40602070820h7ecd70aawf45ef1f55382e682@mail.gmail.com> Date: Tue, 7 Feb 2006 21:50:48 +0530 From: Pranav Sawargaonkar To: Pawel Jakub Dawidek In-Reply-To: <20060205214335.GA779@garage.freebsd.pl> MIME-Version: 1.0 References: <5007e1a40602051012n16016431wf743684dded0a5d7@mail.gmail.com> <20060205214335.GA779@garage.freebsd.pl> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org Subject: Re: File creation using KLD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Feb 2006 16:20:51 -0000 Thank you for giving me guideline on this topic. Because of that I succeed in creating a file and writing on it. On 2/6/06, Pawel Jakub Dawidek wrote: > > On Sun, Feb 05, 2006 at 11:42:04PM +0530, Pranav Sawargaonkar wrote: > +> Hi > +> I want to create a file on disk using KLD and then tryout some > reading and > +> writing stuff on that file,so can any one suggest me any solution i.e= . > +> functions to use and locks which i need to carry out this. > > This is a bit tricky, ie. there is no clean API for this, but it is of > course possible. > > There are few frameworks in the kernel that do exactly this. One of them > is alq(9), so take a look at sys/kern/kern_alq.c. > > -- > Pawel Jakub Dawidek http://www.wheel.pl > pjd@FreeBSD.org http://www.FreeBSD.org > FreeBSD committer Am I Evil? Yes, I Am! > > >