Re: [PATCH] new system call mknod64

Jamie Lokier
2003-04-22T01:49:50Z

H. Peter Anvin wrote:
> > Well, I have also done that of course. Both struct and u64 work well.
> > Since only kdev_t.h knows about the actual structure of kdev_t
> > it is very easy to switch.
> >
>
> The main advantage with making it a struct is that it keep people from
> doing stupid stuff like (int)dev where dev is a kdev_t... There is
> all kinds of shit like that in the kernel...

If you want that good quality 64-bit code, try making it a struct
containing just a u64 :)

-- Jamie