# mypy: ignore-errors # -*- coding: utf-8 -*- # # TARGET arch is: [] # WORD_SIZE is: 8 # POINTER_SIZE is: 8 # LONGDOUBLE_SIZE is: 16 # import ctypes class AsDictMixin: @classmethod def as_dict(cls, self): result = {} if not isinstance(self, AsDictMixin): # not a structure, assume it's already a python object return self if not hasattr(cls, "_fields_"): return result # sys.version_info >= (3, 5) # for (field, *_) in cls._fields_: # noqa for field_tuple in cls._fields_: # noqa field = field_tuple[0] if field.startswith('PADDING_'): continue value = getattr(self, field) type_ = type(value) if hasattr(value, "_length_") and hasattr(value, "_type_"): # array if not hasattr(type_, "as_dict"): value = [v for v in value] else: type_ = type_._type_ value = [type_.as_dict(v) for v in value] elif hasattr(value, "contents") and hasattr(value, "_type_"): # pointer try: if not hasattr(type_, "as_dict"): value = value.contents else: type_ = type_._type_ value = type_.as_dict(value.contents) except ValueError: # nullptr value = None elif isinstance(value, AsDictMixin): # other structure value = type_.as_dict(value) result[field] = value return result class Structure(ctypes.Structure, AsDictMixin): def __init__(self, *args, **kwds): # We don't want to use positional arguments fill PADDING_* fields args = dict(zip(self.__class__._field_names_(), args)) args.update(kwds) super(Structure, self).__init__(**args) @classmethod def _field_names_(cls): if hasattr(cls, '_fields_'): return (f[0] for f in cls._fields_ if not f[0].startswith('PADDING')) else: return () @classmethod def get_type(cls, field): for f in cls._fields_: if f[0] == field: return f[1] return None @classmethod def bind(cls, bound_fields): fields = {} for name, type_ in cls._fields_: if hasattr(type_, "restype"): if name in bound_fields: if bound_fields[name] is None: fields[name] = type_() else: # use a closure to capture the callback from the loop scope fields[name] = ( type_((lambda callback: lambda *args: callback(*args))( bound_fields[name])) ) del bound_fields[name] else: # default callback implementation (does nothing) try: default_ = type_(0).restype().value except TypeError: default_ = None fields[name] = type_(( lambda default_: lambda *args: default_)(default_)) else: # not a callback function, use default initialization if name in bound_fields: fields[name] = bound_fields[name] del bound_fields[name] else: fields[name] = type_() if len(bound_fields) != 0: raise ValueError( "Cannot bind the following unknown callback(s) {}.{}".format( cls.__name__, bound_fields.keys() )) return cls(**fields) class Union(ctypes.Union, AsDictMixin): pass c_int128 = ctypes.c_ubyte*16 c_uint128 = c_int128 void = None if ctypes.sizeof(ctypes.c_longdouble) == 16: c_long_double_t = ctypes.c_longdouble else: c_long_double_t = ctypes.c_ubyte*16 class FunctionFactoryStub: def __getattr__(self, _): return ctypes.CFUNCTYPE(lambda y:y) # libraries['FIXME_STUB'] explanation # As you did not list (-l libraryname.so) a library that exports this function # This is a non-working stub instead. # You can either re-run clan2py with -l /path/to/library.so # Or manually fix this by comment the ctypes.CDLL loading _libraries = {} _libraries['FIXME_STUB'] = FunctionFactoryStub() # ctypes.CDLL('FIXME_STUB') def string_cast(char_pointer, encoding='utf-8', errors='strict'): value = ctypes.cast(char_pointer, ctypes.c_char_p).value if value is not None and encoding is not None: value = value.decode(encoding, errors=errors) return value def char_pointer_cast(string, encoding='utf-8'): if encoding is not None: try: string = string.encode(encoding) except AttributeError: # In Python3, bytes has no encode attribute pass string = ctypes.c_char_p(string) return ctypes.cast(string, ctypes.POINTER(ctypes.c_char)) LIB_URING_H = True # macro _XOPEN_SOURCE = 500 # macro _GNU_SOURCE = True # macro # def uring_unlikely(cond): # macro # return __builtin_expect(!!(cond),0) # def uring_likely(cond): # macro # return __builtin_expect(!!(cond),1) IOURINGINLINE = True # macro __NR_io_uring_setup = 425 # macro __NR_io_uring_enter = 426 # macro __NR_io_uring_register = 427 # macro def io_uring_cqe_index(ring, ptr, mask): # macro return (((ptr)&(mask))<cq.khead;(cqe=(head!=io_uring_smp_load_acquire((ring)->cq.ktail)?&(ring)->cq.cqes[io_uring_cqe_index(ring,head,(ring)->cq.ring_mask)]:NULL));head++) LIBURING_HAVE_DATA64 = True # macro def UNUSED(x): # macro return (void)(x) # def IO_URING_CHECK_VERSION(major, minor): # macro # return (major>IO_URING_VERSION_MAJOR or (major==IO_URING_VERSION_MAJOR and minor>=IO_URING_VERSION_MINOR)) class struct_io_uring_sq(Structure): pass class struct_io_uring_sqe(Structure): pass struct_io_uring_sq._pack_ = 1 # source:False struct_io_uring_sq._fields_ = [ ('khead', ctypes.POINTER(ctypes.c_uint32)), ('ktail', ctypes.POINTER(ctypes.c_uint32)), ('kring_mask', ctypes.POINTER(ctypes.c_uint32)), ('kring_entries', ctypes.POINTER(ctypes.c_uint32)), ('kflags', ctypes.POINTER(ctypes.c_uint32)), ('kdropped', ctypes.POINTER(ctypes.c_uint32)), ('array', ctypes.POINTER(ctypes.c_uint32)), ('sqes', ctypes.POINTER(struct_io_uring_sqe)), ('sqe_head', ctypes.c_uint32), ('sqe_tail', ctypes.c_uint32), ('ring_sz', ctypes.c_uint64), ('ring_ptr', ctypes.POINTER(None)), ('ring_mask', ctypes.c_uint32), ('ring_entries', ctypes.c_uint32), ('pad', ctypes.c_uint32 * 2), ] class union_io_uring_sqe_0(Union): pass class struct_io_uring_sqe_0_0(Structure): pass struct_io_uring_sqe_0_0._pack_ = 1 # source:False struct_io_uring_sqe_0_0._fields_ = [ ('cmd_op', ctypes.c_uint32), ('__pad1', ctypes.c_uint32), ] union_io_uring_sqe_0._pack_ = 1 # source:False union_io_uring_sqe_0._anonymous_ = ('_0',) union_io_uring_sqe_0._fields_ = [ ('off', ctypes.c_uint64), ('addr2', ctypes.c_uint64), ('_0', struct_io_uring_sqe_0_0), ] class union_io_uring_sqe_1(Union): pass union_io_uring_sqe_1._pack_ = 1 # source:False union_io_uring_sqe_1._fields_ = [ ('addr', ctypes.c_uint64), ('splice_off_in', ctypes.c_uint64), ] class union_io_uring_sqe_2(Union): pass union_io_uring_sqe_2._pack_ = 1 # source:False union_io_uring_sqe_2._fields_ = [ ('rw_flags', ctypes.c_int32), ('fsync_flags', ctypes.c_uint32), ('poll_events', ctypes.c_uint16), ('poll32_events', ctypes.c_uint32), ('sync_range_flags', ctypes.c_uint32), ('msg_flags', ctypes.c_uint32), ('timeout_flags', ctypes.c_uint32), ('accept_flags', ctypes.c_uint32), ('cancel_flags', ctypes.c_uint32), ('open_flags', ctypes.c_uint32), ('statx_flags', ctypes.c_uint32), ('fadvise_advice', ctypes.c_uint32), ('splice_flags', ctypes.c_uint32), ('rename_flags', ctypes.c_uint32), ('unlink_flags', ctypes.c_uint32), ('hardlink_flags', ctypes.c_uint32), ('xattr_flags', ctypes.c_uint32), ('msg_ring_flags', ctypes.c_uint32), ('uring_cmd_flags', ctypes.c_uint32), ] class union_io_uring_sqe_3(Union): pass union_io_uring_sqe_3._pack_ = 1 # source:True union_io_uring_sqe_3._fields_ = [ ('buf_index', ctypes.c_uint16), ('buf_group', ctypes.c_uint16), ] class union_io_uring_sqe_4(Union): pass class struct_io_uring_sqe_4_0(Structure): pass struct_io_uring_sqe_4_0._pack_ = 1 # source:False struct_io_uring_sqe_4_0._fields_ = [ ('addr_len', ctypes.c_uint16), ('__pad3', ctypes.c_uint16 * 1), ] union_io_uring_sqe_4._pack_ = 1 # source:False union_io_uring_sqe_4._anonymous_ = ('_0',) union_io_uring_sqe_4._fields_ = [ ('splice_fd_in', ctypes.c_int32), ('file_index', ctypes.c_uint32), ('_0', struct_io_uring_sqe_4_0), ] class union_io_uring_sqe_5(Union): pass class struct_io_uring_sqe_5_0(Structure): pass struct_io_uring_sqe_5_0._pack_ = 1 # source:False struct_io_uring_sqe_5_0._fields_ = [ ('addr3', ctypes.c_uint64), ('__pad2', ctypes.c_uint64 * 1), ] union_io_uring_sqe_5._pack_ = 1 # source:False union_io_uring_sqe_5._anonymous_ = ('_0',) union_io_uring_sqe_5._fields_ = [ ('_0', struct_io_uring_sqe_5_0), ('cmd', ctypes.c_ubyte * 0), ('PADDING_0', ctypes.c_ubyte * 16), ] struct_io_uring_sqe._pack_ = 1 # source:False struct_io_uring_sqe._anonymous_ = ('_0', '_1', '_2', '_3', '_4', '_5',) struct_io_uring_sqe._fields_ = [ ('opcode', ctypes.c_ubyte), ('flags', ctypes.c_ubyte), ('ioprio', ctypes.c_uint16), ('fd', ctypes.c_int32), ('_0', union_io_uring_sqe_0), ('_1', union_io_uring_sqe_1), ('len', ctypes.c_uint32), ('_2', union_io_uring_sqe_2), ('user_data', ctypes.c_uint64), ('_3', union_io_uring_sqe_3), ('personality', ctypes.c_uint16), ('_4', union_io_uring_sqe_4), ('_5', union_io_uring_sqe_5), ] class struct_io_uring_cq(Structure): pass class struct_io_uring_cqe(Structure): pass struct_io_uring_cq._pack_ = 1 # source:False struct_io_uring_cq._fields_ = [ ('khead', ctypes.POINTER(ctypes.c_uint32)), ('ktail', ctypes.POINTER(ctypes.c_uint32)), ('kring_mask', ctypes.POINTER(ctypes.c_uint32)), ('kring_entries', ctypes.POINTER(ctypes.c_uint32)), ('kflags', ctypes.POINTER(ctypes.c_uint32)), ('koverflow', ctypes.POINTER(ctypes.c_uint32)), ('cqes', ctypes.POINTER(struct_io_uring_cqe)), ('ring_sz', ctypes.c_uint64), ('ring_ptr', ctypes.POINTER(None)), ('ring_mask', ctypes.c_uint32), ('ring_entries', ctypes.c_uint32), ('pad', ctypes.c_uint32 * 2), ] struct_io_uring_cqe._pack_ = 1 # source:False struct_io_uring_cqe._fields_ = [ ('user_data', ctypes.c_uint64), ('res', ctypes.c_int32), ('flags', ctypes.c_uint32), ('big_cqe', ctypes.c_uint64 * 0), ] class struct_io_uring(Structure): pass struct_io_uring._pack_ = 1 # source:False struct_io_uring._fields_ = [ ('sq', struct_io_uring_sq), ('cq', struct_io_uring_cq), ('flags', ctypes.c_uint32), ('ring_fd', ctypes.c_int32), ('features', ctypes.c_uint32), ('enter_ring_fd', ctypes.c_int32), ('int_flags', ctypes.c_ubyte), ('pad', ctypes.c_ubyte * 3), ('pad2', ctypes.c_uint32), ] class struct_io_uring_probe(Structure): pass class struct_io_uring_probe_op(Structure): pass struct_io_uring_probe_op._pack_ = 1 # source:False struct_io_uring_probe_op._fields_ = [ ('op', ctypes.c_ubyte), ('resv', ctypes.c_ubyte), ('flags', ctypes.c_uint16), ('resv2', ctypes.c_uint32), ] struct_io_uring_probe._pack_ = 1 # source:False struct_io_uring_probe._fields_ = [ ('last_op', ctypes.c_ubyte), ('ops_len', ctypes.c_ubyte), ('resv', ctypes.c_uint16), ('resv2', ctypes.c_uint32 * 3), ('ops', struct_io_uring_probe_op * 0), ] try: io_uring_get_probe_ring = _libraries['FIXME_STUB'].io_uring_get_probe_ring io_uring_get_probe_ring.restype = ctypes.POINTER(struct_io_uring_probe) io_uring_get_probe_ring.argtypes = [ctypes.POINTER(struct_io_uring)] except AttributeError: pass try: io_uring_get_probe = _libraries['FIXME_STUB'].io_uring_get_probe io_uring_get_probe.restype = ctypes.POINTER(struct_io_uring_probe) io_uring_get_probe.argtypes = [] except AttributeError: pass try: io_uring_free_probe = _libraries['FIXME_STUB'].io_uring_free_probe io_uring_free_probe.restype = None io_uring_free_probe.argtypes = [ctypes.POINTER(struct_io_uring_probe)] except AttributeError: pass try: io_uring_opcode_supported = _libraries['FIXME_STUB'].io_uring_opcode_supported io_uring_opcode_supported.restype = ctypes.c_int32 io_uring_opcode_supported.argtypes = [ctypes.POINTER(struct_io_uring_probe), ctypes.c_int32] except AttributeError: pass class struct_io_uring_params(Structure): pass class struct_io_sqring_offsets(Structure): pass struct_io_sqring_offsets._pack_ = 1 # source:False struct_io_sqring_offsets._fields_ = [ ('head', ctypes.c_uint32), ('tail', ctypes.c_uint32), ('ring_mask', ctypes.c_uint32), ('ring_entries', ctypes.c_uint32), ('flags', ctypes.c_uint32), ('dropped', ctypes.c_uint32), ('array', ctypes.c_uint32), ('resv1', ctypes.c_uint32), ('user_addr', ctypes.c_uint64), ] class struct_io_cqring_offsets(Structure): pass struct_io_cqring_offsets._pack_ = 1 # source:False struct_io_cqring_offsets._fields_ = [ ('head', ctypes.c_uint32), ('tail', ctypes.c_uint32), ('ring_mask', ctypes.c_uint32), ('ring_entries', ctypes.c_uint32), ('overflow', ctypes.c_uint32), ('cqes', ctypes.c_uint32), ('flags', ctypes.c_uint32), ('resv1', ctypes.c_uint32), ('user_addr', ctypes.c_uint64), ] struct_io_uring_params._pack_ = 1 # source:False struct_io_uring_params._fields_ = [ ('sq_entries', ctypes.c_uint32), ('cq_entries', ctypes.c_uint32), ('flags', ctypes.c_uint32), ('sq_thread_cpu', ctypes.c_uint32), ('sq_thread_idle', ctypes.c_uint32), ('features', ctypes.c_uint32), ('wq_fd', ctypes.c_uint32), ('resv', ctypes.c_uint32 * 3), ('sq_off', struct_io_sqring_offsets), ('cq_off', struct_io_cqring_offsets), ] size_t = ctypes.c_uint64 try: io_uring_queue_init_mem = _libraries['FIXME_STUB'].io_uring_queue_init_mem io_uring_queue_init_mem.restype = ctypes.c_int32 io_uring_queue_init_mem.argtypes = [ctypes.c_uint32, ctypes.POINTER(struct_io_uring), ctypes.POINTER(struct_io_uring_params), ctypes.POINTER(None), size_t] except AttributeError: pass try: io_uring_queue_init_params = _libraries['FIXME_STUB'].io_uring_queue_init_params io_uring_queue_init_params.restype = ctypes.c_int32 io_uring_queue_init_params.argtypes = [ctypes.c_uint32, ctypes.POINTER(struct_io_uring), ctypes.POINTER(struct_io_uring_params)] except AttributeError: pass try: io_uring_queue_init = _libraries['FIXME_STUB'].io_uring_queue_init io_uring_queue_init.restype = ctypes.c_int32 io_uring_queue_init.argtypes = [ctypes.c_uint32, ctypes.POINTER(struct_io_uring), ctypes.c_uint32] except AttributeError: pass try: io_uring_queue_mmap = _libraries['FIXME_STUB'].io_uring_queue_mmap io_uring_queue_mmap.restype = ctypes.c_int32 io_uring_queue_mmap.argtypes = [ctypes.c_int32, ctypes.POINTER(struct_io_uring_params), ctypes.POINTER(struct_io_uring)] except AttributeError: pass try: io_uring_ring_dontfork = _libraries['FIXME_STUB'].io_uring_ring_dontfork io_uring_ring_dontfork.restype = ctypes.c_int32 io_uring_ring_dontfork.argtypes = [ctypes.POINTER(struct_io_uring)] except AttributeError: pass try: io_uring_queue_exit = _libraries['FIXME_STUB'].io_uring_queue_exit io_uring_queue_exit.restype = None io_uring_queue_exit.argtypes = [ctypes.POINTER(struct_io_uring)] except AttributeError: pass try: io_uring_peek_batch_cqe = _libraries['FIXME_STUB'].io_uring_peek_batch_cqe io_uring_peek_batch_cqe.restype = ctypes.c_uint32 io_uring_peek_batch_cqe.argtypes = [ctypes.POINTER(struct_io_uring), ctypes.POINTER(ctypes.POINTER(struct_io_uring_cqe)), ctypes.c_uint32] except AttributeError: pass class struct___kernel_timespec(Structure): pass struct___kernel_timespec._pack_ = 1 # source:False struct___kernel_timespec._fields_ = [ ('tv_sec', ctypes.c_int64), ('tv_nsec', ctypes.c_int64), ] class struct_c__SA___sigset_t(Structure): pass struct_c__SA___sigset_t._pack_ = 1 # source:False struct_c__SA___sigset_t._fields_ = [ ('__val', ctypes.c_uint64 * 16), ] try: io_uring_wait_cqes = _libraries['FIXME_STUB'].io_uring_wait_cqes io_uring_wait_cqes.restype = ctypes.c_int32 io_uring_wait_cqes.argtypes = [ctypes.POINTER(struct_io_uring), ctypes.POINTER(ctypes.POINTER(struct_io_uring_cqe)), ctypes.c_uint32, ctypes.POINTER(struct___kernel_timespec), ctypes.POINTER(struct_c__SA___sigset_t)] except AttributeError: pass try: io_uring_wait_cqe_timeout = _libraries['FIXME_STUB'].io_uring_wait_cqe_timeout io_uring_wait_cqe_timeout.restype = ctypes.c_int32 io_uring_wait_cqe_timeout.argtypes = [ctypes.POINTER(struct_io_uring), ctypes.POINTER(ctypes.POINTER(struct_io_uring_cqe)), ctypes.POINTER(struct___kernel_timespec)] except AttributeError: pass try: io_uring_submit = _libraries['FIXME_STUB'].io_uring_submit io_uring_submit.restype = ctypes.c_int32 io_uring_submit.argtypes = [ctypes.POINTER(struct_io_uring)] except AttributeError: pass try: io_uring_submit_and_wait = _libraries['FIXME_STUB'].io_uring_submit_and_wait io_uring_submit_and_wait.restype = ctypes.c_int32 io_uring_submit_and_wait.argtypes = [ctypes.POINTER(struct_io_uring), ctypes.c_uint32] except AttributeError: pass try: io_uring_submit_and_wait_timeout = _libraries['FIXME_STUB'].io_uring_submit_and_wait_timeout io_uring_submit_and_wait_timeout.restype = ctypes.c_int32 io_uring_submit_and_wait_timeout.argtypes = [ctypes.POINTER(struct_io_uring), ctypes.POINTER(ctypes.POINTER(struct_io_uring_cqe)), ctypes.c_uint32, ctypes.POINTER(struct___kernel_timespec), ctypes.POINTER(struct_c__SA___sigset_t)] except AttributeError: pass class struct_iovec(Structure): pass struct_iovec._pack_ = 1 # source:False struct_iovec._fields_ = [ ('iov_base', ctypes.POINTER(None)), ('iov_len', ctypes.c_uint64), ] try: io_uring_register_buffers = _libraries['FIXME_STUB'].io_uring_register_buffers io_uring_register_buffers.restype = ctypes.c_int32 io_uring_register_buffers.argtypes = [ctypes.POINTER(struct_io_uring), ctypes.POINTER(struct_iovec), ctypes.c_uint32] except AttributeError: pass try: io_uring_register_buffers_tags = _libraries['FIXME_STUB'].io_uring_register_buffers_tags io_uring_register_buffers_tags.restype = ctypes.c_int32 io_uring_register_buffers_tags.argtypes = [ctypes.POINTER(struct_io_uring), ctypes.POINTER(struct_iovec), ctypes.POINTER(ctypes.c_uint64), ctypes.c_uint32] except AttributeError: pass try: io_uring_register_buffers_sparse = _libraries['FIXME_STUB'].io_uring_register_buffers_sparse io_uring_register_buffers_sparse.restype = ctypes.c_int32 io_uring_register_buffers_sparse.argtypes = [ctypes.POINTER(struct_io_uring), ctypes.c_uint32] except AttributeError: pass try: io_uring_register_buffers_update_tag = _libraries['FIXME_STUB'].io_uring_register_buffers_update_tag io_uring_register_buffers_update_tag.restype = ctypes.c_int32 io_uring_register_buffers_update_tag.argtypes = [ctypes.POINTER(struct_io_uring), ctypes.c_uint32, ctypes.POINTER(struct_iovec), ctypes.POINTER(ctypes.c_uint64), ctypes.c_uint32] except AttributeError: pass try: io_uring_unregister_buffers = _libraries['FIXME_STUB'].io_uring_unregister_buffers io_uring_unregister_buffers.restype = ctypes.c_int32 io_uring_unregister_buffers.argtypes = [ctypes.POINTER(struct_io_uring)] except AttributeError: pass try: io_uring_register_files = _libraries['FIXME_STUB'].io_uring_register_files io_uring_register_files.restype = ctypes.c_int32 io_uring_register_files.argtypes = [ctypes.POINTER(struct_io_uring), ctypes.POINTER(ctypes.c_int32), ctypes.c_uint32] except AttributeError: pass try: io_uring_register_files_tags = _libraries['FIXME_STUB'].io_uring_register_files_tags io_uring_register_files_tags.restype = ctypes.c_int32 io_uring_register_files_tags.argtypes = [ctypes.POINTER(struct_io_uring), ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_uint64), ctypes.c_uint32] except AttributeError: pass try: io_uring_register_files_sparse = _libraries['FIXME_STUB'].io_uring_register_files_sparse io_uring_register_files_sparse.restype = ctypes.c_int32 io_uring_register_files_sparse.argtypes = [ctypes.POINTER(struct_io_uring), ctypes.c_uint32] except AttributeError: pass try: io_uring_register_files_update_tag = _libraries['FIXME_STUB'].io_uring_register_files_update_tag io_uring_register_files_update_tag.restype = ctypes.c_int32 io_uring_register_files_update_tag.argtypes = [ctypes.POINTER(struct_io_uring), ctypes.c_uint32, ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_uint64), ctypes.c_uint32] except AttributeError: pass try: io_uring_unregister_files = _libraries['FIXME_STUB'].io_uring_unregister_files io_uring_unregister_files.restype = ctypes.c_int32 io_uring_unregister_files.argtypes = [ctypes.POINTER(struct_io_uring)] except AttributeError: pass try: io_uring_register_files_update = _libraries['FIXME_STUB'].io_uring_register_files_update io_uring_register_files_update.restype = ctypes.c_int32 io_uring_register_files_update.argtypes = [ctypes.POINTER(struct_io_uring), ctypes.c_uint32, ctypes.POINTER(ctypes.c_int32), ctypes.c_uint32] except AttributeError: pass try: io_uring_register_eventfd = _libraries['FIXME_STUB'].io_uring_register_eventfd io_uring_register_eventfd.restype = ctypes.c_int32 io_uring_register_eventfd.argtypes = [ctypes.POINTER(struct_io_uring), ctypes.c_int32] except AttributeError: pass try: io_uring_register_eventfd_async = _libraries['FIXME_STUB'].io_uring_register_eventfd_async io_uring_register_eventfd_async.restype = ctypes.c_int32 io_uring_register_eventfd_async.argtypes = [ctypes.POINTER(struct_io_uring), ctypes.c_int32] except AttributeError: pass try: io_uring_unregister_eventfd = _libraries['FIXME_STUB'].io_uring_unregister_eventfd io_uring_unregister_eventfd.restype = ctypes.c_int32 io_uring_unregister_eventfd.argtypes = [ctypes.POINTER(struct_io_uring)] except AttributeError: pass try: io_uring_register_probe = _libraries['FIXME_STUB'].io_uring_register_probe io_uring_register_probe.restype = ctypes.c_int32 io_uring_register_probe.argtypes = [ctypes.POINTER(struct_io_uring), ctypes.POINTER(struct_io_uring_probe), ctypes.c_uint32] except AttributeError: pass try: io_uring_register_personality = _libraries['FIXME_STUB'].io_uring_register_personality io_uring_register_personality.restype = ctypes.c_int32 io_uring_register_personality.argtypes = [ctypes.POINTER(struct_io_uring)] except AttributeError: pass try: io_uring_unregister_personality = _libraries['FIXME_STUB'].io_uring_unregister_personality io_uring_unregister_personality.restype = ctypes.c_int32 io_uring_unregister_personality.argtypes = [ctypes.POINTER(struct_io_uring), ctypes.c_int32] except AttributeError: pass class struct_io_uring_restriction(Structure): pass class union_io_uring_restriction_0(Union): pass union_io_uring_restriction_0._pack_ = 1 # source:False union_io_uring_restriction_0._fields_ = [ ('register_op', ctypes.c_ubyte), ('sqe_op', ctypes.c_ubyte), ('sqe_flags', ctypes.c_ubyte), ] struct_io_uring_restriction._pack_ = 1 # source:False struct_io_uring_restriction._anonymous_ = ('_0',) struct_io_uring_restriction._fields_ = [ ('opcode', ctypes.c_uint16), ('_0', union_io_uring_restriction_0), ('resv', ctypes.c_ubyte), ('resv2', ctypes.c_uint32 * 3), ] try: io_uring_register_restrictions = _libraries['FIXME_STUB'].io_uring_register_restrictions io_uring_register_restrictions.restype = ctypes.c_int32 io_uring_register_restrictions.argtypes = [ctypes.POINTER(struct_io_uring), ctypes.POINTER(struct_io_uring_restriction), ctypes.c_uint32] except AttributeError: pass try: io_uring_enable_rings = _libraries['FIXME_STUB'].io_uring_enable_rings io_uring_enable_rings.restype = ctypes.c_int32 io_uring_enable_rings.argtypes = [ctypes.POINTER(struct_io_uring)] except AttributeError: pass try: __io_uring_sqring_wait = _libraries['FIXME_STUB'].__io_uring_sqring_wait __io_uring_sqring_wait.restype = ctypes.c_int32 __io_uring_sqring_wait.argtypes = [ctypes.POINTER(struct_io_uring)] except AttributeError: pass class struct_c__SA_cpu_set_t(Structure): pass struct_c__SA_cpu_set_t._pack_ = 1 # source:False struct_c__SA_cpu_set_t._fields_ = [ ('__bits', ctypes.c_uint64 * 16), ] try: io_uring_register_iowq_aff = _libraries['FIXME_STUB'].io_uring_register_iowq_aff io_uring_register_iowq_aff.restype = ctypes.c_int32 io_uring_register_iowq_aff.argtypes = [ctypes.POINTER(struct_io_uring), size_t, ctypes.POINTER(struct_c__SA_cpu_set_t)] except AttributeError: pass try: io_uring_unregister_iowq_aff = _libraries['FIXME_STUB'].io_uring_unregister_iowq_aff io_uring_unregister_iowq_aff.restype = ctypes.c_int32 io_uring_unregister_iowq_aff.argtypes = [ctypes.POINTER(struct_io_uring)] except AttributeError: pass try: io_uring_register_iowq_max_workers = _libraries['FIXME_STUB'].io_uring_register_iowq_max_workers io_uring_register_iowq_max_workers.restype = ctypes.c_int32 io_uring_register_iowq_max_workers.argtypes = [ctypes.POINTER(struct_io_uring), ctypes.POINTER(ctypes.c_uint32)] except AttributeError: pass try: io_uring_register_ring_fd = _libraries['FIXME_STUB'].io_uring_register_ring_fd io_uring_register_ring_fd.restype = ctypes.c_int32 io_uring_register_ring_fd.argtypes = [ctypes.POINTER(struct_io_uring)] except AttributeError: pass try: io_uring_unregister_ring_fd = _libraries['FIXME_STUB'].io_uring_unregister_ring_fd io_uring_unregister_ring_fd.restype = ctypes.c_int32 io_uring_unregister_ring_fd.argtypes = [ctypes.POINTER(struct_io_uring)] except AttributeError: pass try: io_uring_close_ring_fd = _libraries['FIXME_STUB'].io_uring_close_ring_fd io_uring_close_ring_fd.restype = ctypes.c_int32 io_uring_close_ring_fd.argtypes = [ctypes.POINTER(struct_io_uring)] except AttributeError: pass class struct_io_uring_buf_reg(Structure): pass struct_io_uring_buf_reg._pack_ = 1 # source:False struct_io_uring_buf_reg._fields_ = [ ('ring_addr', ctypes.c_uint64), ('ring_entries', ctypes.c_uint32), ('bgid', ctypes.c_uint16), ('flags', ctypes.c_uint16), ('resv', ctypes.c_uint64 * 3), ] try: io_uring_register_buf_ring = _libraries['FIXME_STUB'].io_uring_register_buf_ring io_uring_register_buf_ring.restype = ctypes.c_int32 io_uring_register_buf_ring.argtypes = [ctypes.POINTER(struct_io_uring), ctypes.POINTER(struct_io_uring_buf_reg), ctypes.c_uint32] except AttributeError: pass try: io_uring_unregister_buf_ring = _libraries['FIXME_STUB'].io_uring_unregister_buf_ring io_uring_unregister_buf_ring.restype = ctypes.c_int32 io_uring_unregister_buf_ring.argtypes = [ctypes.POINTER(struct_io_uring), ctypes.c_int32] except AttributeError: pass class struct_io_uring_sync_cancel_reg(Structure): pass struct_io_uring_sync_cancel_reg._pack_ = 1 # source:False struct_io_uring_sync_cancel_reg._fields_ = [ ('addr', ctypes.c_uint64), ('fd', ctypes.c_int32), ('flags', ctypes.c_uint32), ('timeout', struct___kernel_timespec), ('pad', ctypes.c_uint64 * 4), ] try: io_uring_register_sync_cancel = _libraries['FIXME_STUB'].io_uring_register_sync_cancel io_uring_register_sync_cancel.restype = ctypes.c_int32 io_uring_register_sync_cancel.argtypes = [ctypes.POINTER(struct_io_uring), ctypes.POINTER(struct_io_uring_sync_cancel_reg)] except AttributeError: pass try: io_uring_register_file_alloc_range = _libraries['FIXME_STUB'].io_uring_register_file_alloc_range io_uring_register_file_alloc_range.restype = ctypes.c_int32 io_uring_register_file_alloc_range.argtypes = [ctypes.POINTER(struct_io_uring), ctypes.c_uint32, ctypes.c_uint32] except AttributeError: pass try: io_uring_get_events = _libraries['FIXME_STUB'].io_uring_get_events io_uring_get_events.restype = ctypes.c_int32 io_uring_get_events.argtypes = [ctypes.POINTER(struct_io_uring)] except AttributeError: pass try: io_uring_submit_and_get_events = _libraries['FIXME_STUB'].io_uring_submit_and_get_events io_uring_submit_and_get_events.restype = ctypes.c_int32 io_uring_submit_and_get_events.argtypes = [ctypes.POINTER(struct_io_uring)] except AttributeError: pass try: io_uring_enter = _libraries['FIXME_STUB'].io_uring_enter io_uring_enter.restype = ctypes.c_int32 io_uring_enter.argtypes = [ctypes.c_uint32, ctypes.c_uint32, ctypes.c_uint32, ctypes.c_uint32, ctypes.POINTER(struct_c__SA___sigset_t)] except AttributeError: pass try: io_uring_enter2 = _libraries['FIXME_STUB'].io_uring_enter2 io_uring_enter2.restype = ctypes.c_int32 io_uring_enter2.argtypes = [ctypes.c_uint32, ctypes.c_uint32, ctypes.c_uint32, ctypes.c_uint32, ctypes.POINTER(struct_c__SA___sigset_t), size_t] except AttributeError: pass try: io_uring_setup = _libraries['FIXME_STUB'].io_uring_setup io_uring_setup.restype = ctypes.c_int32 io_uring_setup.argtypes = [ctypes.c_uint32, ctypes.POINTER(struct_io_uring_params)] except AttributeError: pass try: io_uring_register = _libraries['FIXME_STUB'].io_uring_register io_uring_register.restype = ctypes.c_int32 io_uring_register.argtypes = [ctypes.c_uint32, ctypes.c_uint32, ctypes.POINTER(None), ctypes.c_uint32] except AttributeError: pass class struct_io_uring_buf_ring(Structure): pass class union_io_uring_buf_ring_0(Union): pass class struct_io_uring_buf_ring_0_0(Structure): pass struct_io_uring_buf_ring_0_0._pack_ = 1 # source:False struct_io_uring_buf_ring_0_0._fields_ = [ ('resv1', ctypes.c_uint64), ('resv2', ctypes.c_uint32), ('resv3', ctypes.c_uint16), ('tail', ctypes.c_uint16), ] class struct_io_uring_buf(Structure): pass struct_io_uring_buf._pack_ = 1 # source:False struct_io_uring_buf._fields_ = [ ('addr', ctypes.c_uint64), ('len', ctypes.c_uint32), ('bid', ctypes.c_uint16), ('resv', ctypes.c_uint16), ] union_io_uring_buf_ring_0._pack_ = 1 # source:False union_io_uring_buf_ring_0._anonymous_ = ('_0',) union_io_uring_buf_ring_0._fields_ = [ ('_0', struct_io_uring_buf_ring_0_0), ('bufs', struct_io_uring_buf * 0), ('PADDING_0', ctypes.c_ubyte * 16), ] struct_io_uring_buf_ring._pack_ = 1 # source:False struct_io_uring_buf_ring._anonymous_ = ('_0',) struct_io_uring_buf_ring._fields_ = [ ('_0', union_io_uring_buf_ring_0), ] try: io_uring_setup_buf_ring = _libraries['FIXME_STUB'].io_uring_setup_buf_ring io_uring_setup_buf_ring.restype = ctypes.POINTER(struct_io_uring_buf_ring) io_uring_setup_buf_ring.argtypes = [ctypes.POINTER(struct_io_uring), ctypes.c_uint32, ctypes.c_int32, ctypes.c_uint32, ctypes.POINTER(ctypes.c_int32)] except AttributeError: pass try: io_uring_free_buf_ring = _libraries['FIXME_STUB'].io_uring_free_buf_ring io_uring_free_buf_ring.restype = ctypes.c_int32 io_uring_free_buf_ring.argtypes = [ctypes.POINTER(struct_io_uring), ctypes.POINTER(struct_io_uring_buf_ring), ctypes.c_uint32, ctypes.c_int32] except AttributeError: pass try: __io_uring_get_cqe = _libraries['FIXME_STUB'].__io_uring_get_cqe __io_uring_get_cqe.restype = ctypes.c_int32 __io_uring_get_cqe.argtypes = [ctypes.POINTER(struct_io_uring), ctypes.POINTER(ctypes.POINTER(struct_io_uring_cqe)), ctypes.c_uint32, ctypes.c_uint32, ctypes.POINTER(struct_c__SA___sigset_t)] except AttributeError: pass try: io_uring_cq_advance = _libraries['FIXME_STUB'].io_uring_cq_advance io_uring_cq_advance.restype = None io_uring_cq_advance.argtypes = [ctypes.POINTER(struct_io_uring), ctypes.c_uint32] except AttributeError: pass try: io_uring_cqe_seen = _libraries['FIXME_STUB'].io_uring_cqe_seen io_uring_cqe_seen.restype = None io_uring_cqe_seen.argtypes = [ctypes.POINTER(struct_io_uring), ctypes.POINTER(struct_io_uring_cqe)] except AttributeError: pass try: io_uring_sqe_set_data = _libraries['FIXME_STUB'].io_uring_sqe_set_data io_uring_sqe_set_data.restype = None io_uring_sqe_set_data.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.POINTER(None)] except AttributeError: pass try: io_uring_cqe_get_data = _libraries['FIXME_STUB'].io_uring_cqe_get_data io_uring_cqe_get_data.restype = ctypes.POINTER(None) io_uring_cqe_get_data.argtypes = [ctypes.POINTER(struct_io_uring_cqe)] except AttributeError: pass __u64 = ctypes.c_uint64 # LIBURING_UDATA_TIMEOUT = ((__u64)-1) # macro try: io_uring_sqe_set_data64 = _libraries['FIXME_STUB'].io_uring_sqe_set_data64 io_uring_sqe_set_data64.restype = None io_uring_sqe_set_data64.argtypes = [ctypes.POINTER(struct_io_uring_sqe), __u64] except AttributeError: pass try: io_uring_cqe_get_data64 = _libraries['FIXME_STUB'].io_uring_cqe_get_data64 io_uring_cqe_get_data64.restype = __u64 io_uring_cqe_get_data64.argtypes = [ctypes.POINTER(struct_io_uring_cqe)] except AttributeError: pass try: io_uring_sqe_set_flags = _libraries['FIXME_STUB'].io_uring_sqe_set_flags io_uring_sqe_set_flags.restype = None io_uring_sqe_set_flags.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_uint32] except AttributeError: pass try: __io_uring_set_target_fixed_file = _libraries['FIXME_STUB'].__io_uring_set_target_fixed_file __io_uring_set_target_fixed_file.restype = None __io_uring_set_target_fixed_file.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_uint32] except AttributeError: pass try: io_uring_prep_rw = _libraries['FIXME_STUB'].io_uring_prep_rw io_uring_prep_rw.restype = None io_uring_prep_rw.argtypes = [ctypes.c_int32, ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.POINTER(None), ctypes.c_uint32, __u64] except AttributeError: pass int64_t = ctypes.c_int64 try: io_uring_prep_splice = _libraries['FIXME_STUB'].io_uring_prep_splice io_uring_prep_splice.restype = None io_uring_prep_splice.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, int64_t, ctypes.c_int32, int64_t, ctypes.c_uint32, ctypes.c_uint32] except AttributeError: pass try: io_uring_prep_tee = _libraries['FIXME_STUB'].io_uring_prep_tee io_uring_prep_tee.restype = None io_uring_prep_tee.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.c_int32, ctypes.c_uint32, ctypes.c_uint32] except AttributeError: pass try: io_uring_prep_readv = _libraries['FIXME_STUB'].io_uring_prep_readv io_uring_prep_readv.restype = None io_uring_prep_readv.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.POINTER(struct_iovec), ctypes.c_uint32, __u64] except AttributeError: pass try: io_uring_prep_readv2 = _libraries['FIXME_STUB'].io_uring_prep_readv2 io_uring_prep_readv2.restype = None io_uring_prep_readv2.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.POINTER(struct_iovec), ctypes.c_uint32, __u64, ctypes.c_int32] except AttributeError: pass try: io_uring_prep_read_fixed = _libraries['FIXME_STUB'].io_uring_prep_read_fixed io_uring_prep_read_fixed.restype = None io_uring_prep_read_fixed.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.POINTER(None), ctypes.c_uint32, __u64, ctypes.c_int32] except AttributeError: pass try: io_uring_prep_writev = _libraries['FIXME_STUB'].io_uring_prep_writev io_uring_prep_writev.restype = None io_uring_prep_writev.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.POINTER(struct_iovec), ctypes.c_uint32, __u64] except AttributeError: pass try: io_uring_prep_writev2 = _libraries['FIXME_STUB'].io_uring_prep_writev2 io_uring_prep_writev2.restype = None io_uring_prep_writev2.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.POINTER(struct_iovec), ctypes.c_uint32, __u64, ctypes.c_int32] except AttributeError: pass try: io_uring_prep_write_fixed = _libraries['FIXME_STUB'].io_uring_prep_write_fixed io_uring_prep_write_fixed.restype = None io_uring_prep_write_fixed.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.POINTER(None), ctypes.c_uint32, __u64, ctypes.c_int32] except AttributeError: pass class struct_msghdr(Structure): pass struct_msghdr._pack_ = 1 # source:False struct_msghdr._fields_ = [ ('msg_name', ctypes.POINTER(None)), ('msg_namelen', ctypes.c_uint32), ('PADDING_0', ctypes.c_ubyte * 4), ('msg_iov', ctypes.POINTER(struct_iovec)), ('msg_iovlen', ctypes.c_uint64), ('msg_control', ctypes.POINTER(None)), ('msg_controllen', ctypes.c_uint64), ('msg_flags', ctypes.c_int32), ('PADDING_1', ctypes.c_ubyte * 4), ] try: io_uring_prep_recvmsg = _libraries['FIXME_STUB'].io_uring_prep_recvmsg io_uring_prep_recvmsg.restype = None io_uring_prep_recvmsg.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.POINTER(struct_msghdr), ctypes.c_uint32] except AttributeError: pass try: io_uring_prep_recvmsg_multishot = _libraries['FIXME_STUB'].io_uring_prep_recvmsg_multishot io_uring_prep_recvmsg_multishot.restype = None io_uring_prep_recvmsg_multishot.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.POINTER(struct_msghdr), ctypes.c_uint32] except AttributeError: pass try: io_uring_prep_sendmsg = _libraries['FIXME_STUB'].io_uring_prep_sendmsg io_uring_prep_sendmsg.restype = None io_uring_prep_sendmsg.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.POINTER(struct_msghdr), ctypes.c_uint32] except AttributeError: pass try: __io_uring_prep_poll_mask = _libraries['FIXME_STUB'].__io_uring_prep_poll_mask __io_uring_prep_poll_mask.restype = ctypes.c_uint32 __io_uring_prep_poll_mask.argtypes = [ctypes.c_uint32] except AttributeError: pass try: io_uring_prep_poll_add = _libraries['FIXME_STUB'].io_uring_prep_poll_add io_uring_prep_poll_add.restype = None io_uring_prep_poll_add.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.c_uint32] except AttributeError: pass try: io_uring_prep_poll_multishot = _libraries['FIXME_STUB'].io_uring_prep_poll_multishot io_uring_prep_poll_multishot.restype = None io_uring_prep_poll_multishot.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.c_uint32] except AttributeError: pass try: io_uring_prep_poll_remove = _libraries['FIXME_STUB'].io_uring_prep_poll_remove io_uring_prep_poll_remove.restype = None io_uring_prep_poll_remove.argtypes = [ctypes.POINTER(struct_io_uring_sqe), __u64] except AttributeError: pass try: io_uring_prep_poll_update = _libraries['FIXME_STUB'].io_uring_prep_poll_update io_uring_prep_poll_update.restype = None io_uring_prep_poll_update.argtypes = [ctypes.POINTER(struct_io_uring_sqe), __u64, __u64, ctypes.c_uint32, ctypes.c_uint32] except AttributeError: pass try: io_uring_prep_fsync = _libraries['FIXME_STUB'].io_uring_prep_fsync io_uring_prep_fsync.restype = None io_uring_prep_fsync.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.c_uint32] except AttributeError: pass try: io_uring_prep_nop = _libraries['FIXME_STUB'].io_uring_prep_nop io_uring_prep_nop.restype = None io_uring_prep_nop.argtypes = [ctypes.POINTER(struct_io_uring_sqe)] except AttributeError: pass try: io_uring_prep_timeout = _libraries['FIXME_STUB'].io_uring_prep_timeout io_uring_prep_timeout.restype = None io_uring_prep_timeout.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.POINTER(struct___kernel_timespec), ctypes.c_uint32, ctypes.c_uint32] except AttributeError: pass try: io_uring_prep_timeout_remove = _libraries['FIXME_STUB'].io_uring_prep_timeout_remove io_uring_prep_timeout_remove.restype = None io_uring_prep_timeout_remove.argtypes = [ctypes.POINTER(struct_io_uring_sqe), __u64, ctypes.c_uint32] except AttributeError: pass try: io_uring_prep_timeout_update = _libraries['FIXME_STUB'].io_uring_prep_timeout_update io_uring_prep_timeout_update.restype = None io_uring_prep_timeout_update.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.POINTER(struct___kernel_timespec), __u64, ctypes.c_uint32] except AttributeError: pass class struct_sockaddr(Structure): pass struct_sockaddr._pack_ = 1 # source:False struct_sockaddr._fields_ = [ ('sa_family', ctypes.c_uint16), ('sa_data', ctypes.c_char * 14), ] try: io_uring_prep_accept = _libraries['FIXME_STUB'].io_uring_prep_accept io_uring_prep_accept.restype = None io_uring_prep_accept.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.POINTER(struct_sockaddr), ctypes.POINTER(ctypes.c_uint32), ctypes.c_int32] except AttributeError: pass try: io_uring_prep_accept_direct = _libraries['FIXME_STUB'].io_uring_prep_accept_direct io_uring_prep_accept_direct.restype = None io_uring_prep_accept_direct.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.POINTER(struct_sockaddr), ctypes.POINTER(ctypes.c_uint32), ctypes.c_int32, ctypes.c_uint32] except AttributeError: pass try: io_uring_prep_multishot_accept = _libraries['FIXME_STUB'].io_uring_prep_multishot_accept io_uring_prep_multishot_accept.restype = None io_uring_prep_multishot_accept.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.POINTER(struct_sockaddr), ctypes.POINTER(ctypes.c_uint32), ctypes.c_int32] except AttributeError: pass try: io_uring_prep_multishot_accept_direct = _libraries['FIXME_STUB'].io_uring_prep_multishot_accept_direct io_uring_prep_multishot_accept_direct.restype = None io_uring_prep_multishot_accept_direct.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.POINTER(struct_sockaddr), ctypes.POINTER(ctypes.c_uint32), ctypes.c_int32] except AttributeError: pass try: io_uring_prep_cancel64 = _libraries['FIXME_STUB'].io_uring_prep_cancel64 io_uring_prep_cancel64.restype = None io_uring_prep_cancel64.argtypes = [ctypes.POINTER(struct_io_uring_sqe), __u64, ctypes.c_int32] except AttributeError: pass try: io_uring_prep_cancel = _libraries['FIXME_STUB'].io_uring_prep_cancel io_uring_prep_cancel.restype = None io_uring_prep_cancel.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.POINTER(None), ctypes.c_int32] except AttributeError: pass try: io_uring_prep_cancel_fd = _libraries['FIXME_STUB'].io_uring_prep_cancel_fd io_uring_prep_cancel_fd.restype = None io_uring_prep_cancel_fd.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.c_uint32] except AttributeError: pass try: io_uring_prep_link_timeout = _libraries['FIXME_STUB'].io_uring_prep_link_timeout io_uring_prep_link_timeout.restype = None io_uring_prep_link_timeout.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.POINTER(struct___kernel_timespec), ctypes.c_uint32] except AttributeError: pass socklen_t = ctypes.c_uint32 try: io_uring_prep_connect = _libraries['FIXME_STUB'].io_uring_prep_connect io_uring_prep_connect.restype = None io_uring_prep_connect.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.POINTER(struct_sockaddr), socklen_t] except AttributeError: pass try: io_uring_prep_files_update = _libraries['FIXME_STUB'].io_uring_prep_files_update io_uring_prep_files_update.restype = None io_uring_prep_files_update.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.POINTER(ctypes.c_int32), ctypes.c_uint32, ctypes.c_int32] except AttributeError: pass try: io_uring_prep_fallocate = _libraries['FIXME_STUB'].io_uring_prep_fallocate io_uring_prep_fallocate.restype = None io_uring_prep_fallocate.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.c_int32, __u64, __u64] except AttributeError: pass mode_t = ctypes.c_uint32 try: io_uring_prep_openat = _libraries['FIXME_STUB'].io_uring_prep_openat io_uring_prep_openat.restype = None io_uring_prep_openat.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.POINTER(ctypes.c_char), ctypes.c_int32, mode_t] except AttributeError: pass try: io_uring_prep_openat_direct = _libraries['FIXME_STUB'].io_uring_prep_openat_direct io_uring_prep_openat_direct.restype = None io_uring_prep_openat_direct.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.POINTER(ctypes.c_char), ctypes.c_int32, mode_t, ctypes.c_uint32] except AttributeError: pass try: io_uring_prep_close = _libraries['FIXME_STUB'].io_uring_prep_close io_uring_prep_close.restype = None io_uring_prep_close.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32] except AttributeError: pass try: io_uring_prep_close_direct = _libraries['FIXME_STUB'].io_uring_prep_close_direct io_uring_prep_close_direct.restype = None io_uring_prep_close_direct.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_uint32] except AttributeError: pass try: io_uring_prep_read = _libraries['FIXME_STUB'].io_uring_prep_read io_uring_prep_read.restype = None io_uring_prep_read.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.POINTER(None), ctypes.c_uint32, __u64] except AttributeError: pass try: io_uring_prep_write = _libraries['FIXME_STUB'].io_uring_prep_write io_uring_prep_write.restype = None io_uring_prep_write.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.POINTER(None), ctypes.c_uint32, __u64] except AttributeError: pass class struct_statx(Structure): pass try: io_uring_prep_statx = _libraries['FIXME_STUB'].io_uring_prep_statx io_uring_prep_statx.restype = None io_uring_prep_statx.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.POINTER(ctypes.c_char), ctypes.c_int32, ctypes.c_uint32, ctypes.POINTER(struct_statx)] except AttributeError: pass off_t = ctypes.c_int64 try: io_uring_prep_fadvise = _libraries['FIXME_STUB'].io_uring_prep_fadvise io_uring_prep_fadvise.restype = None io_uring_prep_fadvise.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, __u64, off_t, ctypes.c_int32] except AttributeError: pass try: io_uring_prep_madvise = _libraries['FIXME_STUB'].io_uring_prep_madvise io_uring_prep_madvise.restype = None io_uring_prep_madvise.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.POINTER(None), off_t, ctypes.c_int32] except AttributeError: pass try: io_uring_prep_send = _libraries['FIXME_STUB'].io_uring_prep_send io_uring_prep_send.restype = None io_uring_prep_send.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.POINTER(None), size_t, ctypes.c_int32] except AttributeError: pass __u16 = ctypes.c_uint16 try: io_uring_prep_send_set_addr = _libraries['FIXME_STUB'].io_uring_prep_send_set_addr io_uring_prep_send_set_addr.restype = None io_uring_prep_send_set_addr.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.POINTER(struct_sockaddr), __u16] except AttributeError: pass try: io_uring_prep_sendto = _libraries['FIXME_STUB'].io_uring_prep_sendto io_uring_prep_sendto.restype = None io_uring_prep_sendto.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.POINTER(None), size_t, ctypes.c_int32, ctypes.POINTER(struct_sockaddr), socklen_t] except AttributeError: pass try: io_uring_prep_send_zc = _libraries['FIXME_STUB'].io_uring_prep_send_zc io_uring_prep_send_zc.restype = None io_uring_prep_send_zc.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.POINTER(None), size_t, ctypes.c_int32, ctypes.c_uint32] except AttributeError: pass try: io_uring_prep_send_zc_fixed = _libraries['FIXME_STUB'].io_uring_prep_send_zc_fixed io_uring_prep_send_zc_fixed.restype = None io_uring_prep_send_zc_fixed.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.POINTER(None), size_t, ctypes.c_int32, ctypes.c_uint32, ctypes.c_uint32] except AttributeError: pass try: io_uring_prep_sendmsg_zc = _libraries['FIXME_STUB'].io_uring_prep_sendmsg_zc io_uring_prep_sendmsg_zc.restype = None io_uring_prep_sendmsg_zc.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.POINTER(struct_msghdr), ctypes.c_uint32] except AttributeError: pass try: io_uring_prep_recv = _libraries['FIXME_STUB'].io_uring_prep_recv io_uring_prep_recv.restype = None io_uring_prep_recv.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.POINTER(None), size_t, ctypes.c_int32] except AttributeError: pass try: io_uring_prep_recv_multishot = _libraries['FIXME_STUB'].io_uring_prep_recv_multishot io_uring_prep_recv_multishot.restype = None io_uring_prep_recv_multishot.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.POINTER(None), size_t, ctypes.c_int32] except AttributeError: pass class struct_io_uring_recvmsg_out(Structure): pass struct_io_uring_recvmsg_out._pack_ = 1 # source:False struct_io_uring_recvmsg_out._fields_ = [ ('namelen', ctypes.c_uint32), ('controllen', ctypes.c_uint32), ('payloadlen', ctypes.c_uint32), ('flags', ctypes.c_uint32), ] try: io_uring_recvmsg_validate = _libraries['FIXME_STUB'].io_uring_recvmsg_validate io_uring_recvmsg_validate.restype = ctypes.POINTER(struct_io_uring_recvmsg_out) io_uring_recvmsg_validate.argtypes = [ctypes.POINTER(None), ctypes.c_int32, ctypes.POINTER(struct_msghdr)] except AttributeError: pass try: io_uring_recvmsg_name = _libraries['FIXME_STUB'].io_uring_recvmsg_name io_uring_recvmsg_name.restype = ctypes.POINTER(None) io_uring_recvmsg_name.argtypes = [ctypes.POINTER(struct_io_uring_recvmsg_out)] except AttributeError: pass class struct_cmsghdr(Structure): pass struct_cmsghdr._pack_ = 1 # source:False struct_cmsghdr._fields_ = [ ('cmsg_len', ctypes.c_uint64), ('cmsg_level', ctypes.c_int32), ('cmsg_type', ctypes.c_int32), ('__cmsg_data', ctypes.c_ubyte * 0), ] try: io_uring_recvmsg_cmsg_firsthdr = _libraries['FIXME_STUB'].io_uring_recvmsg_cmsg_firsthdr io_uring_recvmsg_cmsg_firsthdr.restype = ctypes.POINTER(struct_cmsghdr) io_uring_recvmsg_cmsg_firsthdr.argtypes = [ctypes.POINTER(struct_io_uring_recvmsg_out), ctypes.POINTER(struct_msghdr)] except AttributeError: pass try: io_uring_recvmsg_cmsg_nexthdr = _libraries['FIXME_STUB'].io_uring_recvmsg_cmsg_nexthdr io_uring_recvmsg_cmsg_nexthdr.restype = ctypes.POINTER(struct_cmsghdr) io_uring_recvmsg_cmsg_nexthdr.argtypes = [ctypes.POINTER(struct_io_uring_recvmsg_out), ctypes.POINTER(struct_msghdr), ctypes.POINTER(struct_cmsghdr)] except AttributeError: pass try: io_uring_recvmsg_payload = _libraries['FIXME_STUB'].io_uring_recvmsg_payload io_uring_recvmsg_payload.restype = ctypes.POINTER(None) io_uring_recvmsg_payload.argtypes = [ctypes.POINTER(struct_io_uring_recvmsg_out), ctypes.POINTER(struct_msghdr)] except AttributeError: pass try: io_uring_recvmsg_payload_length = _libraries['FIXME_STUB'].io_uring_recvmsg_payload_length io_uring_recvmsg_payload_length.restype = ctypes.c_uint32 io_uring_recvmsg_payload_length.argtypes = [ctypes.POINTER(struct_io_uring_recvmsg_out), ctypes.c_int32, ctypes.POINTER(struct_msghdr)] except AttributeError: pass class struct_open_how(Structure): pass struct_open_how._pack_ = 1 # source:False struct_open_how._fields_ = [ ('flags', ctypes.c_uint64), ('mode', ctypes.c_uint64), ('resolve', ctypes.c_uint64), ] try: io_uring_prep_openat2 = _libraries['FIXME_STUB'].io_uring_prep_openat2 io_uring_prep_openat2.restype = None io_uring_prep_openat2.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.POINTER(ctypes.c_char), ctypes.POINTER(struct_open_how)] except AttributeError: pass try: io_uring_prep_openat2_direct = _libraries['FIXME_STUB'].io_uring_prep_openat2_direct io_uring_prep_openat2_direct.restype = None io_uring_prep_openat2_direct.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.POINTER(ctypes.c_char), ctypes.POINTER(struct_open_how), ctypes.c_uint32] except AttributeError: pass class struct_epoll_event(Structure): pass try: io_uring_prep_epoll_ctl = _libraries['FIXME_STUB'].io_uring_prep_epoll_ctl io_uring_prep_epoll_ctl.restype = None io_uring_prep_epoll_ctl.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.c_int32, ctypes.c_int32, ctypes.POINTER(struct_epoll_event)] except AttributeError: pass try: io_uring_prep_provide_buffers = _libraries['FIXME_STUB'].io_uring_prep_provide_buffers io_uring_prep_provide_buffers.restype = None io_uring_prep_provide_buffers.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.POINTER(None), ctypes.c_int32, ctypes.c_int32, ctypes.c_int32, ctypes.c_int32] except AttributeError: pass try: io_uring_prep_remove_buffers = _libraries['FIXME_STUB'].io_uring_prep_remove_buffers io_uring_prep_remove_buffers.restype = None io_uring_prep_remove_buffers.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.c_int32] except AttributeError: pass try: io_uring_prep_shutdown = _libraries['FIXME_STUB'].io_uring_prep_shutdown io_uring_prep_shutdown.restype = None io_uring_prep_shutdown.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.c_int32] except AttributeError: pass try: io_uring_prep_unlinkat = _libraries['FIXME_STUB'].io_uring_prep_unlinkat io_uring_prep_unlinkat.restype = None io_uring_prep_unlinkat.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.POINTER(ctypes.c_char), ctypes.c_int32] except AttributeError: pass try: io_uring_prep_unlink = _libraries['FIXME_STUB'].io_uring_prep_unlink io_uring_prep_unlink.restype = None io_uring_prep_unlink.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.POINTER(ctypes.c_char), ctypes.c_int32] except AttributeError: pass try: io_uring_prep_renameat = _libraries['FIXME_STUB'].io_uring_prep_renameat io_uring_prep_renameat.restype = None io_uring_prep_renameat.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.POINTER(ctypes.c_char), ctypes.c_int32, ctypes.POINTER(ctypes.c_char), ctypes.c_uint32] except AttributeError: pass try: io_uring_prep_rename = _libraries['FIXME_STUB'].io_uring_prep_rename io_uring_prep_rename.restype = None io_uring_prep_rename.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char)] except AttributeError: pass try: io_uring_prep_sync_file_range = _libraries['FIXME_STUB'].io_uring_prep_sync_file_range io_uring_prep_sync_file_range.restype = None io_uring_prep_sync_file_range.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.c_uint32, __u64, ctypes.c_int32] except AttributeError: pass try: io_uring_prep_mkdirat = _libraries['FIXME_STUB'].io_uring_prep_mkdirat io_uring_prep_mkdirat.restype = None io_uring_prep_mkdirat.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.POINTER(ctypes.c_char), mode_t] except AttributeError: pass try: io_uring_prep_mkdir = _libraries['FIXME_STUB'].io_uring_prep_mkdir io_uring_prep_mkdir.restype = None io_uring_prep_mkdir.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.POINTER(ctypes.c_char), mode_t] except AttributeError: pass try: io_uring_prep_symlinkat = _libraries['FIXME_STUB'].io_uring_prep_symlinkat io_uring_prep_symlinkat.restype = None io_uring_prep_symlinkat.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.POINTER(ctypes.c_char), ctypes.c_int32, ctypes.POINTER(ctypes.c_char)] except AttributeError: pass try: io_uring_prep_symlink = _libraries['FIXME_STUB'].io_uring_prep_symlink io_uring_prep_symlink.restype = None io_uring_prep_symlink.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char)] except AttributeError: pass try: io_uring_prep_linkat = _libraries['FIXME_STUB'].io_uring_prep_linkat io_uring_prep_linkat.restype = None io_uring_prep_linkat.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.POINTER(ctypes.c_char), ctypes.c_int32, ctypes.POINTER(ctypes.c_char), ctypes.c_int32] except AttributeError: pass try: io_uring_prep_link = _libraries['FIXME_STUB'].io_uring_prep_link io_uring_prep_link.restype = None io_uring_prep_link.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char), ctypes.c_int32] except AttributeError: pass try: io_uring_prep_msg_ring_cqe_flags = _libraries['FIXME_STUB'].io_uring_prep_msg_ring_cqe_flags io_uring_prep_msg_ring_cqe_flags.restype = None io_uring_prep_msg_ring_cqe_flags.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.c_uint32, __u64, ctypes.c_uint32, ctypes.c_uint32] except AttributeError: pass try: io_uring_prep_msg_ring = _libraries['FIXME_STUB'].io_uring_prep_msg_ring io_uring_prep_msg_ring.restype = None io_uring_prep_msg_ring.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.c_uint32, __u64, ctypes.c_uint32] except AttributeError: pass try: io_uring_prep_msg_ring_fd = _libraries['FIXME_STUB'].io_uring_prep_msg_ring_fd io_uring_prep_msg_ring_fd.restype = None io_uring_prep_msg_ring_fd.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.c_int32, ctypes.c_int32, __u64, ctypes.c_uint32] except AttributeError: pass try: io_uring_prep_msg_ring_fd_alloc = _libraries['FIXME_STUB'].io_uring_prep_msg_ring_fd_alloc io_uring_prep_msg_ring_fd_alloc.restype = None io_uring_prep_msg_ring_fd_alloc.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.c_int32, __u64, ctypes.c_uint32] except AttributeError: pass try: io_uring_prep_getxattr = _libraries['FIXME_STUB'].io_uring_prep_getxattr io_uring_prep_getxattr.restype = None io_uring_prep_getxattr.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char), ctypes.c_uint32] except AttributeError: pass try: io_uring_prep_setxattr = _libraries['FIXME_STUB'].io_uring_prep_setxattr io_uring_prep_setxattr.restype = None io_uring_prep_setxattr.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char), ctypes.c_int32, ctypes.c_uint32] except AttributeError: pass try: io_uring_prep_fgetxattr = _libraries['FIXME_STUB'].io_uring_prep_fgetxattr io_uring_prep_fgetxattr.restype = None io_uring_prep_fgetxattr.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char), ctypes.c_uint32] except AttributeError: pass try: io_uring_prep_fsetxattr = _libraries['FIXME_STUB'].io_uring_prep_fsetxattr io_uring_prep_fsetxattr.restype = None io_uring_prep_fsetxattr.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char), ctypes.c_int32, ctypes.c_uint32] except AttributeError: pass try: io_uring_prep_socket = _libraries['FIXME_STUB'].io_uring_prep_socket io_uring_prep_socket.restype = None io_uring_prep_socket.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.c_int32, ctypes.c_int32, ctypes.c_uint32] except AttributeError: pass try: io_uring_prep_socket_direct = _libraries['FIXME_STUB'].io_uring_prep_socket_direct io_uring_prep_socket_direct.restype = None io_uring_prep_socket_direct.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.c_int32, ctypes.c_int32, ctypes.c_uint32, ctypes.c_uint32] except AttributeError: pass try: io_uring_prep_socket_direct_alloc = _libraries['FIXME_STUB'].io_uring_prep_socket_direct_alloc io_uring_prep_socket_direct_alloc.restype = None io_uring_prep_socket_direct_alloc.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.c_int32, ctypes.c_int32, ctypes.c_uint32] except AttributeError: pass try: io_uring_prep_cmd_sock = _libraries['FIXME_STUB'].io_uring_prep_cmd_sock io_uring_prep_cmd_sock.restype = None io_uring_prep_cmd_sock.argtypes = [ctypes.POINTER(struct_io_uring_sqe), ctypes.c_int32, ctypes.c_int32, ctypes.c_int32, ctypes.c_int32, ctypes.POINTER(None), ctypes.c_int32] except AttributeError: pass try: io_uring_sq_ready = _libraries['FIXME_STUB'].io_uring_sq_ready io_uring_sq_ready.restype = ctypes.c_uint32 io_uring_sq_ready.argtypes = [ctypes.POINTER(struct_io_uring)] except AttributeError: pass try: io_uring_sq_space_left = _libraries['FIXME_STUB'].io_uring_sq_space_left io_uring_sq_space_left.restype = ctypes.c_uint32 io_uring_sq_space_left.argtypes = [ctypes.POINTER(struct_io_uring)] except AttributeError: pass try: io_uring_sqring_wait = _libraries['FIXME_STUB'].io_uring_sqring_wait io_uring_sqring_wait.restype = ctypes.c_int32 io_uring_sqring_wait.argtypes = [ctypes.POINTER(struct_io_uring)] except AttributeError: pass try: io_uring_cq_ready = _libraries['FIXME_STUB'].io_uring_cq_ready io_uring_cq_ready.restype = ctypes.c_uint32 io_uring_cq_ready.argtypes = [ctypes.POINTER(struct_io_uring)] except AttributeError: pass try: io_uring_cq_has_overflow = _libraries['FIXME_STUB'].io_uring_cq_has_overflow io_uring_cq_has_overflow.restype = ctypes.c_bool io_uring_cq_has_overflow.argtypes = [ctypes.POINTER(struct_io_uring)] except AttributeError: pass try: io_uring_cq_eventfd_enabled = _libraries['FIXME_STUB'].io_uring_cq_eventfd_enabled io_uring_cq_eventfd_enabled.restype = ctypes.c_bool io_uring_cq_eventfd_enabled.argtypes = [ctypes.POINTER(struct_io_uring)] except AttributeError: pass try: io_uring_cq_eventfd_toggle = _libraries['FIXME_STUB'].io_uring_cq_eventfd_toggle io_uring_cq_eventfd_toggle.restype = ctypes.c_int32 io_uring_cq_eventfd_toggle.argtypes = [ctypes.POINTER(struct_io_uring), ctypes.c_bool] except AttributeError: pass try: io_uring_wait_cqe_nr = _libraries['FIXME_STUB'].io_uring_wait_cqe_nr io_uring_wait_cqe_nr.restype = ctypes.c_int32 io_uring_wait_cqe_nr.argtypes = [ctypes.POINTER(struct_io_uring), ctypes.POINTER(ctypes.POINTER(struct_io_uring_cqe)), ctypes.c_uint32] except AttributeError: pass try: __io_uring_peek_cqe = _libraries['FIXME_STUB'].__io_uring_peek_cqe __io_uring_peek_cqe.restype = ctypes.c_int32 __io_uring_peek_cqe.argtypes = [ctypes.POINTER(struct_io_uring), ctypes.POINTER(ctypes.POINTER(struct_io_uring_cqe)), ctypes.POINTER(ctypes.c_uint32)] except AttributeError: pass try: io_uring_peek_cqe = _libraries['FIXME_STUB'].io_uring_peek_cqe io_uring_peek_cqe.restype = ctypes.c_int32 io_uring_peek_cqe.argtypes = [ctypes.POINTER(struct_io_uring), ctypes.POINTER(ctypes.POINTER(struct_io_uring_cqe))] except AttributeError: pass try: io_uring_wait_cqe = _libraries['FIXME_STUB'].io_uring_wait_cqe io_uring_wait_cqe.restype = ctypes.c_int32 io_uring_wait_cqe.argtypes = [ctypes.POINTER(struct_io_uring), ctypes.POINTER(ctypes.POINTER(struct_io_uring_cqe))] except AttributeError: pass try: _io_uring_get_sqe = _libraries['FIXME_STUB']._io_uring_get_sqe _io_uring_get_sqe.restype = ctypes.POINTER(struct_io_uring_sqe) _io_uring_get_sqe.argtypes = [ctypes.POINTER(struct_io_uring)] except AttributeError: pass __u32 = ctypes.c_uint32 try: io_uring_buf_ring_mask = _libraries['FIXME_STUB'].io_uring_buf_ring_mask io_uring_buf_ring_mask.restype = ctypes.c_int32 io_uring_buf_ring_mask.argtypes = [__u32] except AttributeError: pass try: io_uring_buf_ring_init = _libraries['FIXME_STUB'].io_uring_buf_ring_init io_uring_buf_ring_init.restype = None io_uring_buf_ring_init.argtypes = [ctypes.POINTER(struct_io_uring_buf_ring)] except AttributeError: pass try: io_uring_buf_ring_add = _libraries['FIXME_STUB'].io_uring_buf_ring_add io_uring_buf_ring_add.restype = None io_uring_buf_ring_add.argtypes = [ctypes.POINTER(struct_io_uring_buf_ring), ctypes.POINTER(None), ctypes.c_uint32, ctypes.c_uint16, ctypes.c_int32, ctypes.c_int32] except AttributeError: pass try: io_uring_buf_ring_advance = _libraries['FIXME_STUB'].io_uring_buf_ring_advance io_uring_buf_ring_advance.restype = None io_uring_buf_ring_advance.argtypes = [ctypes.POINTER(struct_io_uring_buf_ring), ctypes.c_int32] except AttributeError: pass try: __io_uring_buf_ring_cq_advance = _libraries['FIXME_STUB'].__io_uring_buf_ring_cq_advance __io_uring_buf_ring_cq_advance.restype = None __io_uring_buf_ring_cq_advance.argtypes = [ctypes.POINTER(struct_io_uring), ctypes.POINTER(struct_io_uring_buf_ring), ctypes.c_int32, ctypes.c_int32] except AttributeError: pass try: io_uring_buf_ring_cq_advance = _libraries['FIXME_STUB'].io_uring_buf_ring_cq_advance io_uring_buf_ring_cq_advance.restype = None io_uring_buf_ring_cq_advance.argtypes = [ctypes.POINTER(struct_io_uring), ctypes.POINTER(struct_io_uring_buf_ring), ctypes.c_int32] except AttributeError: pass try: io_uring_get_sqe = _libraries['FIXME_STUB'].io_uring_get_sqe io_uring_get_sqe.restype = ctypes.POINTER(struct_io_uring_sqe) io_uring_get_sqe.argtypes = [ctypes.POINTER(struct_io_uring)] except AttributeError: pass ssize_t = ctypes.c_int64 try: io_uring_mlock_size = _libraries['FIXME_STUB'].io_uring_mlock_size io_uring_mlock_size.restype = ssize_t io_uring_mlock_size.argtypes = [ctypes.c_uint32, ctypes.c_uint32] except AttributeError: pass try: io_uring_mlock_size_params = _libraries['FIXME_STUB'].io_uring_mlock_size_params io_uring_mlock_size_params.restype = ssize_t io_uring_mlock_size_params.argtypes = [ctypes.c_uint32, ctypes.POINTER(struct_io_uring_params)] except AttributeError: pass try: io_uring_major_version = _libraries['FIXME_STUB'].io_uring_major_version io_uring_major_version.restype = ctypes.c_int32 io_uring_major_version.argtypes = [] except AttributeError: pass try: io_uring_minor_version = _libraries['FIXME_STUB'].io_uring_minor_version io_uring_minor_version.restype = ctypes.c_int32 io_uring_minor_version.argtypes = [] except AttributeError: pass try: io_uring_check_version = _libraries['FIXME_STUB'].io_uring_check_version io_uring_check_version.restype = ctypes.c_bool io_uring_check_version.argtypes = [ctypes.c_int32, ctypes.c_int32] except AttributeError: pass LINUX_IO_URING_H = True # macro IORING_FILE_INDEX_ALLOC = (~0) # macro IORING_SETUP_IOPOLL = (1<<0) # macro IORING_SETUP_SQPOLL = (1<<1) # macro IORING_SETUP_SQ_AFF = (1<<2) # macro IORING_SETUP_CQSIZE = (1<<3) # macro IORING_SETUP_CLAMP = (1<<4) # macro IORING_SETUP_ATTACH_WQ = (1<<5) # macro IORING_SETUP_R_DISABLED = (1<<6) # macro IORING_SETUP_SUBMIT_ALL = (1<<7) # macro IORING_SETUP_COOP_TASKRUN = (1<<8) # macro IORING_SETUP_TASKRUN_FLAG = (1<<9) # macro IORING_SETUP_SQE128 = (1<<10) # macro IORING_SETUP_CQE32 = (1<<11) # macro # def io_uring_cqe_shift(ring): # macro # return (!!((ring)->flags&IORING_SETUP_CQE32)) IORING_SETUP_SINGLE_ISSUER = (1<<12) # macro IORING_SETUP_DEFER_TASKRUN = (1<<13) # macro IORING_SETUP_NO_MMAP = (1<<14) # macro IORING_SETUP_REGISTERED_FD_ONLY = (1<<15) # macro IORING_SETUP_NO_SQARRAY = (1<<16) # macro IORING_URING_CMD_FIXED = (1<<0) # macro IORING_URING_CMD_MASK = (1<<0) # macro IORING_FSYNC_DATASYNC = (1<<0) # macro IORING_TIMEOUT_ABS = (1<<0) # macro IORING_TIMEOUT_UPDATE = (1<<1) # macro IORING_TIMEOUT_BOOTTIME = (1<<2) # macro IORING_TIMEOUT_REALTIME = (1<<3) # macro IORING_LINK_TIMEOUT_UPDATE = (1<<4) # macro IORING_TIMEOUT_ETIME_SUCCESS = (1<<5) # macro IORING_TIMEOUT_MULTISHOT = (1<<6) # macro IORING_TIMEOUT_CLOCK_MASK = ((1<<2)|(1<<3)) # macro IORING_TIMEOUT_UPDATE_MASK = ((1<<1)|(1<<4)) # macro SPLICE_F_FD_IN_FIXED = (1<<31) # macro IORING_POLL_ADD_MULTI = (1<<0) # macro IORING_POLL_UPDATE_EVENTS = (1<<1) # macro IORING_POLL_UPDATE_USER_DATA = (1<<2) # macro IORING_POLL_ADD_LEVEL = (1<<3) # macro IORING_ASYNC_CANCEL_ALL = (1<<0) # macro IORING_ASYNC_CANCEL_FD = (1<<1) # macro IORING_ASYNC_CANCEL_ANY = (1<<2) # macro IORING_ASYNC_CANCEL_FD_FIXED = (1<<3) # macro IORING_ASYNC_CANCEL_USERDATA = (1<<4) # macro IORING_ASYNC_CANCEL_OP = (1<<5) # macro IORING_RECVSEND_POLL_FIRST = (1<<0) # macro IORING_RECV_MULTISHOT = (1<<1) # macro IORING_RECVSEND_FIXED_BUF = (1<<2) # macro IORING_SEND_ZC_REPORT_USAGE = (1<<3) # macro IORING_NOTIF_USAGE_ZC_COPIED = (1<<31) # macro IORING_ACCEPT_MULTISHOT = (1<<0) # macro IORING_MSG_RING_CQE_SKIP = (1<<0) # macro IORING_MSG_RING_FLAGS_PASS = (1<<1) # macro IORING_FIXED_FD_NO_CLOEXEC = (1<<0) # macro IORING_CQE_F_BUFFER = (1<<0) # macro IORING_CQE_F_MORE = (1<<1) # macro IORING_CQE_F_SOCK_NONEMPTY = (1<<2) # macro IORING_CQE_F_NOTIF = (1<<3) # macro IORING_OFF_SQ_RING = 0 # macro IORING_OFF_CQ_RING = 0x8000000 # macro IORING_OFF_SQES = 0x10000000 # macro IORING_OFF_PBUF_RING = 0x80000000 # macro IORING_OFF_PBUF_SHIFT = 16 # macro IORING_OFF_MMAP_MASK = 0xf8000000 # macro IORING_SQ_NEED_WAKEUP = (1<<0) # macro IORING_SQ_CQ_OVERFLOW = (1<<1) # macro IORING_SQ_TASKRUN = (1<<2) # macro IORING_CQ_EVENTFD_DISABLED = (1<<0) # macro IORING_ENTER_GETEVENTS = (1<<0) # macro IORING_ENTER_SQ_WAKEUP = (1<<1) # macro IORING_ENTER_SQ_WAIT = (1<<2) # macro IORING_ENTER_EXT_ARG = (1<<3) # macro IORING_ENTER_REGISTERED_RING = (1<<4) # macro IORING_FEAT_SINGLE_MMAP = (1<<0) # macro IORING_FEAT_NODROP = (1<<1) # macro IORING_FEAT_SUBMIT_STABLE = (1<<2) # macro IORING_FEAT_RW_CUR_POS = (1<<3) # macro IORING_FEAT_CUR_PERSONALITY = (1<<4) # macro IORING_FEAT_FAST_POLL = (1<<5) # macro IORING_FEAT_POLL_32BITS = (1<<6) # macro IORING_FEAT_SQPOLL_NONFIXED = (1<<7) # macro IORING_FEAT_EXT_ARG = (1<<8) # macro IORING_FEAT_NATIVE_WORKERS = (1<<9) # macro IORING_FEAT_RSRC_TAGS = (1<<10) # macro IORING_FEAT_CQE_SKIP = (1<<11) # macro IORING_FEAT_LINKED_FILE = (1<<12) # macro IORING_FEAT_REG_REG_RING = (1<<13) # macro IORING_RSRC_REGISTER_SPARSE = (1<<0) # macro IORING_REGISTER_FILES_SKIP = (-2) # macro IO_URING_OP_SUPPORTED = (1<<0) # macro # values for enumeration 'c__Ea_IOSQE_FIXED_FILE_BIT' c__Ea_IOSQE_FIXED_FILE_BIT__enumvalues = { 0: 'IOSQE_FIXED_FILE_BIT', 1: 'IOSQE_IO_DRAIN_BIT', 2: 'IOSQE_IO_LINK_BIT', 3: 'IOSQE_IO_HARDLINK_BIT', 4: 'IOSQE_ASYNC_BIT', 5: 'IOSQE_BUFFER_SELECT_BIT', 6: 'IOSQE_CQE_SKIP_SUCCESS_BIT', } IOSQE_FIXED_FILE_BIT = 0 IOSQE_IO_DRAIN_BIT = 1 IOSQE_IO_LINK_BIT = 2 IOSQE_IO_HARDLINK_BIT = 3 IOSQE_ASYNC_BIT = 4 IOSQE_BUFFER_SELECT_BIT = 5 IOSQE_CQE_SKIP_SUCCESS_BIT = 6 c__Ea_IOSQE_FIXED_FILE_BIT = ctypes.c_uint32 # enum IOSQE_FIXED_FILE = (1<