On Tue, 4 Jan 2011 11:01:06 +0530
"Babu, Ramesh" <[email protected]> wrote:

> > > +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:

unsigned long is fine for internal to kernel stuff as it will always be
the right size. For userspace you want the struct to stay the same size
so the safest is to use

__aligned_u64

which will pack in the same way on 32 and 64bit boxes
_______________________________________________
MeeGo-kernel mailing list
[email protected]
http://lists.meego.com/listinfo/meego-kernel

Reply via email to