开发者

ioctl calls from 32 bit application to 64 bit driver

I have to make a ioctl call to the 64 bit driver code from a 32 bit application. I have send a stru开发者_如何转开发cture as an argument to ioctl call. I see lot of alignment and padding issues because of difference in architecture of user and driver code. Is there any way to solve this structure and padding created due to difference in architecture of user and driver code?


check your compiler for a 'pack' switch - it might be referred to as alignment or padding. In the case of a device driver, the data must be sent/recv'd exactly as expected.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜