0

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?

2
  • 2
    This is not very clear, which might be partially my fault for trying to clean it up. Please avoid overly abbreviating your text, write "you" instead of "u", don't litter periods all over the place, et cetera. Commented Jan 5, 2010 at 10:18
  • 1
    Is this a Linux specific question? Or does it apply also to MacOSX, and/or to any UNIX? Commented Jan 5, 2010 at 10:22

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.