| ... | @@ -623,7 +623,10 @@ pub const CompletionQueue = struct { | ... | @@ -623,7 +623,10 @@ pub const CompletionQueue = struct { |
| 623 | | 623 | |
| 624 | inline fn check_errno(res: usize) !void { | 624 | inline fn check_errno(res: usize) !void { |
| 625 | const errno = linux.getErrno(res); | 625 | const errno = linux.getErrno(res); |
| 626 | if (errno != 0) return os.unexpectedErrno(errno); | 626 | if (errno != 0) { |
| | 627 | if (errno == linux.ENOSYS) return error.UnsupportedKernel; |
| | 628 | return os.unexpectedErrno(errno); |
| | 629 | } |
| 627 | } | 630 | } |
| 628 | | 631 | |
| 629 | test "queue_nop" { | 632 | test "queue_nop" { |