Re: [PATCH] New phys_addr() syscall

Richard Gooch (Richard.Gooch@atnf.CSIRO.AU)
Tue, 21 Jul 1998 17:43:00 +1000


Chris Wedgwood writes:
> On Tue, Jul 21, 1998 at 04:47:13PM +1000, Richard Gooch wrote:
>
> > Aside: I've switched to an ioctl(2) interface on /proc/*/mem.
> > The problem is that the return value is an int, which is only 32
> > bits. Won't this be a problem for 64 machines with over 4 GBytes of
> > RAM?
>
> err = ioctl(fd,RGOOCH_FUNKY_STUFF,&some_data_to_fill_out);
>
> addr = some_data_to_fill_out.addr;

That is in effect what I'm doing. What Richard Henderson was
suggesting was that I do away with the copy_*_user stuff and use the
return argument directly. That won't work because it's an int (32
bits).

Regards,

Richard....

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html