- File:
-
- 1 edited
-
libcfa/src/concurrency/io/setup.cfa (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/io/setup.cfa
r63fe427c r1eb239e4 298 298 if( params_in.poll_complete ) params.flags |= IORING_SETUP_IOPOLL; 299 299 300 uint32_t nentries = params_in.num_entries != 0 ? params_in.num_entries : 256; 301 if( !is_pow2(nentries) ) { 302 abort("ERROR: I/O setup 'num_entries' must be a power of 2\n"); 303 } 304 if( params_in.poller_submits && params_in.eager_submits ) { 305 abort("ERROR: I/O setup 'poller_submits' and 'eager_submits' cannot be used together\n"); 306 } 300 uint32_t nentries = params_in.num_entries; 307 301 308 302 int fd = syscall(__NR_io_uring_setup, nentries, ¶ms );
Note:
See TracChangeset
for help on using the changeset viewer.