1RELAY_OPEN(9) relay interface support RELAY_OPEN(9)
2
3
4
6 relay_open - create a new relay channel
7
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
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
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
42Kernel Hackers Manual 2.6. June 2019 RELAY_OPEN(9)