diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/relayfs_fs.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/relayfs_fs.h b/include/linux/relayfs_fs.h index 8c21771058..30f45511b4 100644 --- a/include/linux/relayfs_fs.h +++ b/include/linux/relayfs_fs.h | |||
| @@ -116,6 +116,7 @@ struct rchan_callbacks | |||
| 116 | * @parent: the parent of the file to create | 116 | * @parent: the parent of the file to create |
| 117 | * @mode: the mode of the file to create | 117 | * @mode: the mode of the file to create |
| 118 | * @buf: the channel buffer | 118 | * @buf: the channel buffer |
| 119 | * @is_global: outparam - set non-zero if the buffer should be global | ||
| 119 | * | 120 | * |
| 120 | * Called during relay_open(), once for each per-cpu buffer, | 121 | * Called during relay_open(), once for each per-cpu buffer, |
| 121 | * to allow the client to create a file to be used to | 122 | * to allow the client to create a file to be used to |
| @@ -126,12 +127,17 @@ struct rchan_callbacks | |||
| 126 | * The callback should return the dentry of the file created | 127 | * The callback should return the dentry of the file created |
| 127 | * to represent the relay buffer. | 128 | * to represent the relay buffer. |
| 128 | * | 129 | * |
| 130 | * Setting the is_global outparam to a non-zero value will | ||
| 131 | * cause relay_open() to create a single global buffer rather | ||
| 132 | * than the default set of per-cpu buffers. | ||
| 133 | * | ||
| 129 | * See Documentation/filesystems/relayfs.txt for more info. | 134 | * See Documentation/filesystems/relayfs.txt for more info. |
| 130 | */ | 135 | */ |
| 131 | struct dentry *(*create_buf_file)(const char *filename, | 136 | struct dentry *(*create_buf_file)(const char *filename, |
| 132 | struct dentry *parent, | 137 | struct dentry *parent, |
| 133 | int mode, | 138 | int mode, |
| 134 | struct rchan_buf *buf); | 139 | struct rchan_buf *buf, |
| 140 | int *is_global); | ||
| 135 | 141 | ||
| 136 | /* | 142 | /* |
| 137 | * remove_buf_file - remove file representing a relayfs channel buffer | 143 | * remove_buf_file - remove file representing a relayfs channel buffer |
