> > It's declared as "unsigned long" because that's how tasklets work. > > If "unsigned long" is bigger than a pointer, the extra bits get safely > > discarded. > > sizeof(unsigned long) is always guaranteed to be equal to sizeof(void *) > on Linux. It's one of the compiler assumptions the kernel makes (there
Not equal to - greater than or equal to. > are some others, and I had a list around here somewhere with them, but I > can't find it right now...it's in the lkml archives from a few years > ago if anyone is interested) Linux basically requires that you can cast a pointer into a ulong and back again. Really to be strict you should only assume a cast to a ulong and a cast from a ulong of the same pointer type. If someone inflicts a word addressed machine on us in future like a port to the old HLH Orion that will be important 8) Alan _______________________________________________________________ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
