Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

copyin problem

From: Florin SIMEN <vasi(at)ss.pub.ro>
Date: Tue Apr 29 2003 - 11:56:33 EDT


I have problems using function copyin(). It returns error.
here is a sample from my code :


struct data_io {                 /* structure for ioctl function */
        unsigned int nr_param;   /* number of parameters */
        char sir[10];    /* parameters */
        };

int
pdacioctl(dev, cmd, data, flags, p)

        dev_t dev;
        caddr_t data;
        int flags;

{
 struct data_io *scan_struct1,*c;
 c=(struct data_io *)data;
 error=copyin(c,scan_struct1,sizeof(struct data_io));

the function copyin returns error.

The data in the data argument is ok. I have printed itin the ioctl function.Is it a problem if I use it directly, without copyin ? Any advice is useful.
Thanks. and sorry for my bad English. Received on Tue Apr 29 12:00:14 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 13:48:39 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library