开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜