table of contents
RELAY_OPEN(9) | relay interface support | RELAY_OPEN(9) |
NAME¶
relay_open - create a new relay channelSYNOPSIS¶
struct rchan * relay_open(const char * base_filename, struct dentry * parent, size_t subbuf_size, size_t n_subbufs, struct rchan_callbacks * cb, void * private_data);
ARGUMENTS¶
const char * base_filenamestruct dentry * parent
size_t subbuf_size
size_t n_subbufs
struct rchan_callbacks * cb
void * private_data
DESCRIPTION¶
Returns channel pointer if successful, NULL otherwise.Creates a channel buffer for each cpu using the sizes and attributes specified. The created channel buffer files will be named base_filename0...base_filenameN-1. File permissions will be S_IRUSR.
If opening a buffer (parent = NULL) that you later wish to register in a filesystem, call relay_late_setup_files once the parent dentry is available.
COPYRIGHT¶
July 2017 | Kernel Hackers Manual 4.11 |