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 <[EMAIL PROTECTED]> 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 > [EMAIL PROTECTED] http://www.FreeBSD.org > FreeBSD committer Am I Evil? Yes, I Am! > > > _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"

