Re: Using open system call in KLD

2006-03-06 Thread Pawel Jakub Dawidek
On Mon, Mar 06, 2006 at 02:10:10AM -0800, Anupam Deshpande wrote: +> I successfully created a file using kern_open(). +> Now I want to 'write to' or 'read from' the file.What functions should +> I use for that purpose? This is not so trivial as it is in userland (but you already know that:)). Her

Re: Using open system call in KLD

2006-03-06 Thread Anupam Deshpande
On 3/5/06, Robert Watson <[EMAIL PROTECTED]> wrote: > > On Sun, 5 Mar 2006, Anupam Deshpande wrote: > > > I have used open system call in KLD to create a file. But after > > inserting the module the file is not created though the file descriptor > > returned is non zero. I also used close s

Re: Using open system call in KLD

2006-03-05 Thread Robert Watson
On Sun, 5 Mar 2006, Anupam Deshpande wrote: I have used open system call in KLD to create a file. But after inserting the module the file is not created though the file descriptor returned is non zero. I also used close system call to close the file, using the descriptor returned by o

Using open system call in KLD

2006-03-05 Thread Anupam Deshpande
Hello, I have used open system call in KLD to create a file. But after inserting the module the file is not created though the file descriptor returned is non zero. I also used close system call to close the file, using the descriptor returned by open system call. I called the fol