]> err.no Git - linux-2.6/blobdiff - include/linux/relayfs_fs.h
[PATCH] USB: add support for OCHI on AT91rm9200
[linux-2.6] / include / linux / relayfs_fs.h
index 8c21771058571ffa29053250411f168812670a51..7342e66247fbe120b2a2f0fcb6ffd63ebb20d004 100644 (file)
@@ -116,6 +116,7 @@ struct rchan_callbacks
         * @parent: the parent of the file to create
         * @mode: the mode of the file to create
         * @buf: the channel buffer
+        * @is_global: outparam - set non-zero if the buffer should be global
         *
         * Called during relay_open(), once for each per-cpu buffer,
         * to allow the client to create a file to be used to
@@ -126,12 +127,17 @@ struct rchan_callbacks
         * The callback should return the dentry of the file created
         * to represent the relay buffer.
         *
+        * Setting the is_global outparam to a non-zero value will
+        * cause relay_open() to create a single global buffer rather
+        * than the default set of per-cpu buffers.
+        *
         * See Documentation/filesystems/relayfs.txt for more info.
         */
        struct dentry *(*create_buf_file)(const char *filename,
                                          struct dentry *parent,
                                          int mode,
-                                         struct rchan_buf *buf);
+                                         struct rchan_buf *buf,
+                                         int *is_global);
 
        /*
         * remove_buf_file - remove file representing a relayfs channel buffer
@@ -273,10 +279,9 @@ static inline void subbuf_start_reserve(struct rchan_buf *buf,
 }
 
 /*
- * exported relayfs file operations, fs/relayfs/inode.c
+ * exported relay file operations, fs/relayfs/inode.c
  */
-
-extern struct file_operations relayfs_file_operations;
+extern struct file_operations relay_file_operations;
 
 #endif /* _LINUX_RELAYFS_FS_H */