Re: Tasklet usage?

Roland Dreier
2004-10-16T16:04:00Z

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