Transcendental functions satisfying nonhomogeneous linear differential equations