April 15, 2013

Kernel timer behaviour during jiffies wrap around.

Could you please help me to understand the "Kernel timer" behaviour during the below scenario(Assume the machine is 32bit machine) in 2.6.x kernels.

Scenario:
A Kernel timer's expiry value is initialized to "jiffies+8", when the jiffies value is "0xFFFFFFF0". This Kernel timer is added using add_timer() API after the jiffies wrap around(say the jiffies value is 0x01000000).

What time the Kernel timer's timeout function will be called in this scenario?