Date: Sun, 5 Feb 2006 22:43:35 +0100 From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: Pranav Sawargaonkar <pranav.sawargaonkar@gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: File creation using KLD Message-ID: <20060205214335.GA779@garage.freebsd.pl> In-Reply-To: <5007e1a40602051012n16016431wf743684dded0a5d7@mail.gmail.com> References: <5007e1a40602051012n16016431wf743684dded0a5d7@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--mP3DRpeJDSE+ciuQ Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --mP3DRpeJDSE+ciuQ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFD5nGHForvXbEpPzQRAiv/AJwOWWYYKzgCWEh4YP3j16R/Ad0R7QCg9XG1 sWOPax8ZWJIJulooZX7OnG0= =t0g0 -----END PGP SIGNATURE----- --mP3DRpeJDSE+ciuQ--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060205214335.GA779>