Hi,
I'm using RTLinux 2.2.18 ,
I wrote a device driver for device called pctio10 which is sitting on isa
bus on address 1a0.(the device has counters mechanism that can create
interupts to isa bus ).
using the book "linux device driver" I'm trying to pass parameter from user
application, simple c program to my device ( which is in kernel module).
In the user application I'm using :
the open function to get file descriptor , which I use for the read/write
functions.
I can see by dmesg and debug prints that I'm getting into to the appropriate
function 
in my device module.
the problem is that I can't pass void *buf, size_t nbyte   parameters in
read and write functions 
  ssize_t write(int fildes, const void *buf, size_t nbyte);
  ssize_t read(int fildes, void *buf, size_t nbyte);
from user application  to the appropriate functions in the device driver
code because the information doesn't  seems to beat 
the read/write  parameters interface at the read/write function.
later on I attend to use the function copy_to_user, and copy_from_user.
Does anyone know why I can't pass the parameters to the device driver ?

Thx,
Liat

----- End of forwarded message from [EMAIL PROTECTED] -----
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/

Reply via email to