pub unsafe extern "C" fn memory_region_add_eventfd(
    mr: *mut MemoryRegion,
    addr: hwaddr,
    size: c_uint,
    match_data: bool,
    data: u64,
    e: *mut EventNotifier
)
Expand description

memory_region_add_eventfd: Request an eventfd to be triggered when a word is written to a location.

Marks a word in an IO region (initialized with memory_region_init_io()) as a trigger for an eventfd event. The I/O callback will not be called. The caller must be prepared to handle failure (that is, take the required action if the callback is called).

@mr: the memory region being updated. @addr: the address within @mr that is to be monitored @size: the size of the access to trigger the eventfd @match_data: whether to match against @data, instead of just @addr @data: the data to match against the guest write @fd: the eventfd to be triggered when @addr, @size, and @data all match.