mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-19 02:04:19 +08:00
907f2c77d1
This patch adds a mandatory fileops param to relayfs_create_file() and exports that function so that clients can use it to create files defined by their own set of file operations, in relayfs. The purpose is to allow relayfs applications to create their own set of 'control' files alongside their relay files in relayfs rather than having to create them in /proc or debugfs for instance. relayfs_create_file() is also used by relay_open_buf() to create the relay files for a channel. In this case, a pointer to relayfs_file_operations is passed in, along with a pointer to the buffer associated with the file. Signed-off-by: Tom Zanussi <zanussi@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
9 lines
213 B
C
9 lines
213 B
C
#ifndef _RELAY_H
|
|
#define _RELAY_H
|
|
|
|
extern int relayfs_remove(struct dentry *dentry);
|
|
extern int relay_buf_empty(struct rchan_buf *buf);
|
|
extern void relay_destroy_channel(struct kref *kref);
|
|
|
|
#endif /* _RELAY_H */
|