Hello ,

        I have also  pctio10 cards , ISA based (make Advantech and
NI) . I developed a device driver for Linux as well as rt_linux .
The procedure you are following for the data passing between user/kernel
space is correct for the Linux . But in the rt_linux you should use
rt_fifo/mbuff . I think in your case rt_fifo is more appropriate .Please
go through the following functions .....
rtf_create , rtf_get , rtf_put , rtf_create_handler and so on.....

this may help you . If any doubt E-mail me without any hegitation .

********************************************************************
                TALK SLOW BUT THINK QUICK
********************************************************************
VIJAY PATEL                             VMAIL:(91) (02712) 69001 
ENGINEER -SC                            EMAIL:[EMAIL PROTECTED]
B.E ( COMPUTER )
INSTITUTE FOR PLASMA RESEARCH
(GOVT. OF INDIA )
BHAT , GANDHINAGAR ,INDIA-382 428

*********************************************************************
LIVE A GOOD HONORABLE LIFE .THEN WHEN YOU GET OLDER AND THINK BACK ,
YOU'LL GET ENJOY IT A SECOND TIME.
*********************************************************************

On Tue, 7 Aug 2001, yeshayahu, Liat wrote:

> 
> 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/
> 

----- 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