Hello,
I've implemented a character device and I'd like to ask If this is correct:
In a Userspace I've a struct with 2 pointers.
I
write
this struct into my device.In my
write
function in char device Icopy_from_user
this structure into kmalloced space.After this I'm in KS and got 2 pointers to US so I want to
copy_from_user
each. Am I allowed to do so right after firstcopy_from_user
by using this copied addresses? They point to a data in US application which calledwrite
function not to thewrite
function argumentchar *buf
.