Re: [PATCH] struct loop_info64

Rusty Russell (rusty@rustcorp.com.au)
Sat, 19 Apr 2003 14:54:59 +1000


In message <20030418180630.GA7247@kroah.com> you write:
> On Fri, Apr 18, 2003 at 10:55:21AM -0700, Linus Torvalds wrote:
> >
> > But we really should have a __ptr64 type too. There's just no sane way to
> > tell gcc about it without requireing casts, which is inconvenient (which
> > means that right now it you just have to use __u64 for pointers if you
> > want to be able to share the structure across 32/64-bit architectures).
>
> I think that's what Stephan and Rusty tried to do with the
> kernel_ulong_t typedef in include/linux/mod_devicetable.h.
>
> Maybe that typedef could be changed into the __ptr64 type? Stephan?

Stephen is away on holidays.

The kernel_ulong_t here is different. It's because (for good or bad)
that header contains longs and is shared with userspace. Fortunately,
it's only now shared with one very particular program, which is in the
kernel source tree, so kludgery is less harmful.

Hope that clarifies,
Rusty.

--
  Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/