sizeof(dev_t)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

to my surprise, 
the sizeof dev_t differs in userspace and kernel.
Its 8 bytes in userspace and 4bytes in kernel.

I am working on a driver, where I include the headers in both user and kernel space.
And I get wrong values due to the difference in sizes.

How do I handle such a situation ?
Kindly suggest.

And why the difference ??? 

Regards,
Sandeep.






“To learn is to change. Education is a process that changes the learner.”

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux