>> Shouldn't there be a special type for doing this type of conversion?

> That type is "unsigned long" :)

Wouldn't "uintptr_t" be a more explicit type for storing pointer addresses as 
integers? It seems to me it has the advantage of expressing intent better for 
us human readers. See <linux/types.h>. Yes, it is currently defined as an 
"unsigned long."
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Reply via email to