Subject: PTRTOINT64() / INT64TOPTR()
To: None <tech-kern@NetBSD.org>
From: Andrew Brown <atatat@atatdot.net>
List: tech-kern
Date: 02/17/2004 09:17:40
currently, the PTRTOINT64() macro is used in sys/kern/init_sysctl.c
for packing the kinfo_proc2 and kinfo_lwp structures, and is defined
independently in lib/libkvm/kvm_proc.c for some related usage.

would anyone object to this macro being moved to sys/sysctl.h and the
definition removed from the other two places, so that the definition
can be kept in one place (and not in two or more), and other pieces of
code may use it (kern.buf for one, proc and lwp stuff being shuffled
around being another)?

i also find it vaguely curious that there's no INT64TOPTR() macro
anywhere...

-- 
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org             * "ah!  i see you have the internet
twofsonet@graffiti.com (Andrew Brown)                that goes *ping*!"
werdna@squooshy.com       * "information is power -- share the wealth."