hi,
I wrote a system call
sys_ip_inp(char *buff, int len)
and used plain copy_to_user(buff, source_mem_location, some_length) in it.
But whenever I malloc a buffer in user space and call sys_ip_inp
ie char * buff = (char *)malloc(somelen*sizeof(char))
, the results are fine. but whenever buff is declared as
char buff[somelength]
the results come unpredicted ie the data in buff does not change at all.
can anybody help?
-------------------------------------------------------------------------------
Sanjeev Dwivedi
Indian Institute of Technology
Guwahati
ASSAM-781001
INDIA
-------------------------------------------------------------------------------
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sun Apr 23 2000 - 21:00:10 EST