Cyril Wallois wrote: > Hi Jan, > > I found where my problem comes from, it is a strange alignment in the > tdma_config structure. > > In user mode the offsets in the struct are : > > id : 16 > offset : > 20 > period : > 28 > phasing : > 32 > size : 36 > > In kernel mode the offsets are : > > id : 16 > offset : > 24 > period : > 32 > phasing : > 36 > size : 40 > > All the field lengths are multiple of 4 bytes, and should not have alignment > problems... > > Anyway, changing the struct to : > > struct { > __s32 id; > __u64 offset; > __u32 period; > __u32 phasing; > __u32 size; > __s32 joint_slot; > __u32 cal_timeout; > __u64 *cal_results; > > } __attribute__((packed)) set_slot; > > or moving id to the end solves the problem. Any idea ? >
I reworked all IOCTL structures and just committed the result. Still works for me, hope it does for you as well. Please let me know what your test results are as I'm planning to release 0.9.12 soon! Jan
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev
_______________________________________________ RTnet-users mailing list RTnet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rtnet-users