Changeset 22226e4 for libcfa/src/concurrency/io/setup.cfa
- Timestamp:
- Mar 18, 2022, 12:42:39 PM (3 years ago)
- Branches:
- ADT, ast-experimental, enum, master, pthread-emulation, qualifiedEnum
- Children:
- 0b4ddb71, 51239d1b
- Parents:
- 3bc69f2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/io/setup.cfa
r3bc69f2 r22226e4 115 115 this.ext_sq.empty = true; 116 116 (this.ext_sq.queue){}; 117 __io_uring_setup( this, cl.io.params, proc->idle_ fd );117 __io_uring_setup( this, cl.io.params, proc->idle_wctx.evfd ); 118 118 __cfadbg_print_safe(io_core, "Kernel I/O : Created ring for io_context %u (%p)\n", this.fd, &this); 119 119 } … … 125 125 __cfadbg_print_safe(io_core, "Kernel I/O : Destroyed ring for io_context %u\n", this.fd); 126 126 } 127 128 extern void __disable_interrupts_hard();129 extern void __enable_interrupts_hard();130 127 131 128 static void __io_uring_setup( $io_context & this, const io_context_params & params_in, int procfd ) { … … 230 227 __cfadbg_print_safe(io_core, "Kernel I/O : registering %d for completion with ring %d\n", procfd, fd); 231 228 232 __disable_interrupts_hard();233 234 229 int ret = syscall( __NR_io_uring_register, fd, IORING_REGISTER_EVENTFD, &procfd, 1); 235 230 if (ret < 0) { 236 231 abort("KERNEL ERROR: IO_URING EVENTFD REGISTER - %s\n", strerror(errno)); 237 232 } 238 239 __enable_interrupts_hard();240 233 241 234 __cfadbg_print_safe(io_core, "Kernel I/O : registered %d for completion with ring %d\n", procfd, fd);
Note: See TracChangeset
for help on using the changeset viewer.