Copying structure and array
Can you please tell me, how to copy a structure & array (p开发者_开发技巧ointer to structure and array) between kernel space and user space, in kernel memory using ioctl interface in C language with OMAP?
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.
精彩评论