On Wed, Jan 5, 2011 at 00:40, mohit verma <mohit89mlnc@gmail.com> wrote:Your question isn't specific enough, so I'll just guess. Let's say
>
> hi all,
> i have seen many places in kernel where the variables specially the
> structures should be of fixed size independent of the architecture. i went
> through the definitions of them but dint get clearly (or frankly say
> ...dint get them even a bit) .
"int". In 32 bit, AFAIK it's 4 byte, but in 64 bit (like IA 64, not
sure if it's x64) it's 8 byte. So, if you just say "int", you will
likely getting screwed up.
By using types like u_int or something like that, you pretty much say
"I mean 4 byte kind of integer" etc
--
regards,
Mulyadi Santosa
Freelance Linux trainer and consultant
blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies