> > +struct snd_sst_tuning_params {
> > + __u8 type;
> > + __u8 str_id;
> > + __u8 size;
> > + __u8 rsvd;
> > + unsigned long addr;
>
> Which will change size for 32 v 64bit..
I followed lkml article[1] and "unsigned long" to hold user space address.
Below is the extract from the article:
"When you define a new ioctl always use types with explicit type sizes
(u32 instead of long) except for pointers or other memory address.
For pointers/memory addresses always use unsigned long."
If this is not acceptable, can I use u64 variable to hold address?
[1]: http://lkml.org/lkml/2002/7/20/60
_______________________________________________
MeeGo-kernel mailing list
[email protected]
http://lists.meego.com/listinfo/meego-kernel