rdtsc
open /dev/somefile [loads module]
close it
rdtsc
compute unload time
at unload time open it again
After enough goes the machine calls the open method of the driver as the
driver is unloaded. The MOD_INC_USE_COUNT in foo_open is too late to stop
disaster
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/