Re: Tasklet usage?

From: Roland Dreier
Date: Sat Oct 16 2004 - 11:06:48 EST


Pierre> As I was digging through the functions there was one thing
Pierre> that struck me. The parameter for the tasklet is of type
Pierre> unsigned long, not void*. Since the parameter in most
Pierre> cases is a pointer this might cause problems on 64-bit
Pierre> systems. Or does the kernel do some magic to map kernel
Pierre> memory in the first 4 GB?

unsigned long will be 64 bits on a 64-bit system. There are many
places in the Linux kernel where we assume that void * and long are
the same size.

- Roland
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/