Okay, I think I found the closest equivalent of EBADE, ERROR_EXCEPTION_IN_SERVICE, after finding identifier - Linux source code (v6.2.7) - Bootlin I looked up what it's used in and noticed in the bluetooth header it's used to indicate a kind of communication error, since there are already dedicated codes to communication errors I had to find something that is similar but subtly different, this is the closest I've identified thus far, anyone think something else is more suitable?