1RELAY_OPEN(9)               relay interface support              RELAY_OPEN(9)
2
3
4

NAME

6       relay_open - create a new relay channel
7

SYNOPSIS

9       struct rchan * relay_open(const char * base_filename,
10                                 struct dentry * parent, size_t subbuf_size,
11                                 size_t n_subbufs,
12                                 struct rchan_callbacks * cb,
13                                 void * private_data);
14

ARGUMENTS

16       base_filename
17           base name of files to create, NULL for buffering only
18
19       parent
20           dentry of parent directory, NULL for root directory or buffer
21
22       subbuf_size
23           size of sub-buffers
24
25       n_subbufs
26           number of sub-buffers
27
28       cb
29           client callback functions
30
31       private_data
32           user-defined data
33

DESCRIPTION

35       Returns channel pointer if successful, NULL otherwise.
36
37       Creates a channel buffer for each cpu using the sizes and attributes
38       specified. The created channel buffer files will be named
39       base_filename0...base_filenameN-1. File permissions will be S_IRUSR.
40
41       If opening a buffer (parent = NULL) that you later wish to register in
42       a filesystem, call relay_late_setup_files once the parent dentry is
43       available.
44
46Kernel Hackers Manual 3.10         June 2019                     RELAY_OPEN(9)
Impressum