Adding missing functions from old kernel (2) [ci skip]