Some Code from 3.0 Kernel