开发者

Copying structure and array

开发者 https://www.devze.com 2022-12-15 23:18 出处:网络
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 wi

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

精彩评论

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