Hello!

> Could I use devinet_ioctl call from a kernel module, because this ioctl
> call looks at the same fields?
> I noticed that it uses copy_fom_user function !!  I tried to used and
> got  error -14 (EFAULT) which indicates
> that copy_from_user failed.

Yes, you may. Just suppround call with:

                mm_segment_t    oldfs;

                oldfs = get_fs(); set_fs(KERNEL_DS);
                err = devinet_ioctl(...);
                set_fs(oldfs);

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

Reply via email to