Chapter 7. relay interface support

Table of Contents

relay interface

Relay interface support is designed to provide an efficient mechanism for tools and facilities to relay large amounts of data from kernel space to user space.

relay interface

relay_buf_full — boolean, is the channel buffer full?
relay_reset — reset the channel
relay_open — create a new relay channel
relay_switch_subbuf — switch to a new sub-buffer
relay_subbufs_consumed — update the buffer's sub-buffers-consumed count
relay_close — close the channel
relay_flush — close the channel
relay_mmap_buf — mmap channel buffer to process address space
relay_alloc_buf — allocate a channel buffer
relay_create_buf — allocate and initialize a channel buffer
relay_destroy_channel — free the channel struct
relay_destroy_buf — destroy an rchan_buf struct and associated buffer
relay_remove_buf — remove a channel buffer
relay_buf_empty — boolean, is the channel buffer empty?
wakeup_readers — wake up readers waiting on a channel
__relay_reset — reset a channel buffer
relay_close_buf — close a channel buffer
relay_hotcpu_callback — CPU hotplug callback
relay_late_setup_files — triggers file creation
relay_file_open — open file op for relay files
relay_file_mmap — mmap file op for relay files
relay_file_poll — poll file op for relay files
relay_file_release — release file op for relay files
relay_file_read_subbuf_avail — return bytes available in sub-buffer
relay_file_read_start_pos — find the first available byte to read
relay_file_read_end_pos — return the new read position