EINVAL is for function arguments. I suggest using ENXIO.