Re: kernel read/write

1999-08-04 Thread Michael Edward Christman
I am trying to implement ioctls with a network driver. However I am confused as to where the driver is. In order to find the file descriptor of a character devices one simply uses file =fopen("dev/foo","r"); fd=fileno(file); and ioctl(fd,cmd,arg); but the network interface doesn't appear

Re: kernel read/write

1999-08-02 Thread David Wright
Quoting Michael Edward Christman ([EMAIL PROTECTED]): > I am modifying a current driver inoder to control it by using read/writes. > I am trying to implement the memcpy_tofs/memcpy_fromfs. My question is > how do I find the pointer to the user space. My previous reply assumed that you knew that a

Re: kernel read/write

1999-07-30 Thread William T Wilson
On Fri, 30 Jul 1999, Michael Edward Christman wrote: > I am trying to implement the memcpy_tofs/memcpy_fromfs. My question is > how do I find the pointer to the user space. I have tried to use fopen() > etc. but there are conflicts when I try to include "stdio.h". As this is You can't use fope

kernel read/write

1999-07-30 Thread Michael Edward Christman
I am modifying a current driver inoder to control it by using read/writes. I am trying to implement the memcpy_tofs/memcpy_fromfs. My question is how do I find the pointer to the user space. I have tried to use fopen() etc. but there are conflicts when I try to include "stdio.h". As this is a pr

Re: kernel read/write

1999-07-30 Thread David Wright
Quoting Michael Edward Christman ([EMAIL PROTECTED]): > I'm trying to write between the application level and the kernel. I am > using version 2.0.34 and am attempting to use memcpy_tofs and > memcpy_fromfs, but am having some trouble. If I use these functions in > the application level, what do

kernel read/write

1999-07-29 Thread Michael Edward Christman
I'm trying to write between the application level and the kernel. I am using version 2.0.34 and am attempting to use memcpy_tofs and memcpy_fromfs, but am having some trouble. If I use these functions in the application level, what do I use for the *to and *from variables. I assume that you can