Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

problem in : Pass sructure to System call by ref

15 views
Skip to first unread message

karna...@yahoo.com

unread,
Dec 14, 2011, 1:32:09 AM12/14/11
to
Hi ,

i want to pass a structure say struct foo{ long a; } to system call in
linux .ive created a header file other.h in include/linux/ and the
system call recieves it's ref as
asmlinkage int myservice(struct * f, int size);

i want any change f->a to be available in user space program.
i have added access_ok and copy_from_user(local,f,size) ,
copy_to_user(f,local,size) functions but the problem is that my user
space program cannot find other.h directory.

please help.. it's been 3 days im stuck on this issue .

Thanks

0 new messages