Re: sizeof(dev_t)

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

 



On Sun, Jul 12, 2009 at 10:16:17PM +0530, SandeepKsinha wrote:
> 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 ?

Why would you be passing a dev_t from user to kernel space as a binary
value?

Why do you want to pass such a value across the boundry in the first
place?

Could you describe what the problem is you are trying to sove by doing
this?

thanks,

greg k-h

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[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