FreeBSD/sys/kern/kern_proc.c
/*
 * This function is typically used to copy out the kernel address, so
 * it can be replaced by assignment of zero.
 */
This function is typically used to copy out the kernel address, so
it can be replaced by assignment of zero.
This function is typically used to copy out the kernel address so it can be replaced by assignment of zero .
static inline uint32_t
ptr32_trim(void *ptr)
{
	uintptr_t uptr;
	uptr = (uintptr_t)ptr;
	return ((uptr > UINT_MAX) ? 0 : uptr);
}
static inline uint32_t ptr32_trim ( void * ptr ) { uintptr_t uptr ; uptr = ( uintptr_t ) ptr ; return ( ( uptr > UINT_MAX ) ? 0 : uptr ) ; }
This function is typically used to copy out the kernel address, so
 it can be replaced by assignment of zero.
This function is typically used to copy out the kernel address so it can be replaced by assignment of zero .