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.”

Reply via email to