Proper way to handle 64-bit pointers?

Jeff Garzik (jgarzik@pobox.com)
Wed, 2 Sep 1998 16:17:49 -0400 (EDT)


To any learned and wise kernel hacker:

There are a few places within the kernel where a pointer value is
converted to an integer, usually as some sort of hash value.

This isn't smart on the Alpha, where pointers are 64-bit, but
integers remain 32-bit.

Sample code:
drivers/char/random.c, line 1253
(passes buf, a 64-bit ptr, to a func expectint a 32-bit int)

My question: What is the best way to convert an Alpha pointer to an int?

Thanks for any help and advice you guys can give.

Jeff

-
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