… | |
… | |
359 | |
359 | |
360 | if (errno != EINVAL) |
360 | if (errno != EINVAL) |
361 | return -1; /* we failed */ |
361 | return -1; /* we failed */ |
362 | |
362 | |
363 | #if TODO |
363 | #if TODO |
364 | if ((~params.features) & (IORING_FEAT_NODROP | IORING_FEATURE_SINGLE_MMAP)) |
364 | if ((~params.features) & (IORING_FEAT_NODROP | IORING_FEATURE_SINGLE_MMAP | IORING_FEAT_SUBMIT_STABLE)) |
365 | return -1; /* we require the above features */ |
365 | return -1; /* we require the above features */ |
366 | #endif |
366 | #endif |
367 | |
367 | |
368 | /* EINVAL: lots of possible reasons, but maybe |
368 | /* EINVAL: lots of possible reasons, but maybe |
369 | * it is because we hit the unqueryable hardcoded size limit |
369 | * it is because we hit the unqueryable hardcoded size limit |