projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Generic HDLC sparse annotations
[powerpc.git]
/
include
/
linux
/
relay.h
diff --git
a/include/linux/relay.h
b/include/linux/relay.h
index
0e3d91b
..
759a0f9
100644
(file)
--- a/
include/linux/relay.h
+++ b/
include/linux/relay.h
@@
-24,7
+24,7
@@
/*
* Tracks changes to rchan/rchan_buf structs
*/
/*
* Tracks changes to rchan/rchan_buf structs
*/
-#define RELAYFS_CHANNEL_VERSION
6
+#define RELAYFS_CHANNEL_VERSION
7
/*
* Per-cpu relay channel buffer
/*
* Per-cpu relay channel buffer
@@
-64,6
+64,10
@@
struct rchan
void *private_data; /* for user-defined data */
size_t last_toobig; /* tried to log event > subbuf size */
struct rchan_buf *buf[NR_CPUS]; /* per-cpu channel buffers */
void *private_data; /* for user-defined data */
size_t last_toobig; /* tried to log event > subbuf size */
struct rchan_buf *buf[NR_CPUS]; /* per-cpu channel buffers */
+ int is_global; /* One global buffer ? */
+ struct list_head list; /* for channel list */
+ struct dentry *parent; /* parent dentry passed to open */
+ char base_filename[NAME_MAX]; /* saved base filename */
};
/*
};
/*
@@
-162,7
+166,8
@@
struct rchan *relay_open(const char *base_filename,
struct dentry *parent,
size_t subbuf_size,
size_t n_subbufs,
struct dentry *parent,
size_t subbuf_size,
size_t n_subbufs,
- struct rchan_callbacks *cb);
+ struct rchan_callbacks *cb,
+ void *private_data);
extern void relay_close(struct rchan *chan);
extern void relay_flush(struct rchan *chan);
extern void relay_subbufs_consumed(struct rchan *chan,
extern void relay_close(struct rchan *chan);
extern void relay_flush(struct rchan *chan);
extern void relay_subbufs_consumed(struct rchan *chan,
@@
-274,7
+279,7
@@
static inline void subbuf_start_reserve(struct rchan_buf *buf,
/*
* exported relay file operations, kernel/relay.c
*/
/*
* exported relay file operations, kernel/relay.c
*/
-extern struct file_operations relay_file_operations;
+extern
const
struct file_operations relay_file_operations;
#endif /* _LINUX_RELAY_H */
#endif /* _LINUX_RELAY_H */