exception UnsupportedError(OSError)#
The running kernel does not support this io_uring feature (an OSError subclass).
Example
# on Linux 6.12, which has no `IORING_REGISTER_QUERY` >>> try: ... io_uring_register_query(Query()) ... except UnsupportedError as e: ... e.errno, str(e) (22, 'Kernel `6.12` does not support `IORING_REGISTER_QUERY`')
Note
errnois the kernel's (EINVAL,EOPNOTSUPP, orEBADFfor a call without a ring on kernels before 6.13).- Raised by the
io_uring_register_*functions, byio_uring_queue_init*(setup flags, on kernels that haveIORING_REGISTER_QUERY) and by calls that need anIORING_FEAT_*the ring lacks (io_uring_set_iowait, the*_min_timeoutwaits). An unsupportedIORING_OP_*fails in its CQE:probe()tells.