tags:

views:

69

answers:

1

Can you please tell me, how to copy a structure & array (pointer to structure and array) between kernel space and user space, in kernel memory using ioctl interface in C language with OMAP?

+1  A: 

Read the source for an ioctl that returns a structure from the kernel you're interested in. TIOCGETA would be a good example, because it returns a structure, and every Unix-ish OS has to implement it.

Andrew McGregor