Javier Castillo wrote:

>       hello, do you know how works command "copy_from_user"??.
> 
>       I have a struct like this 
> 
>       struct ..... = {
>               ..............
>               ..............
>               struct other_thing **  table
>               .............
>       }
> 
>       My problem is that copy_from_user does not copy the "table" correctly,
> well its elements. Is it normal?.

Yes.

It should be obvious that copy_from_user cannot know that some of the
bytes being copied happen to be a pointer to some other data which you
would also like to be copied. And even if it could, it couldn't know
how much data "table" points to.

> If so, then I have to use "copy_from_user" to copy the "table" too?.

Yes.

-- 
Glynn Clements <[EMAIL PROTECTED]>

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to