diff options
Diffstat (limited to 'include/linux/seq_file.h')
| -rw-r--r-- | include/linux/seq_file.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/linux/seq_file.h b/include/linux/seq_file.h index dc50bcc282a8..40ea5058c2ec 100644 --- a/include/linux/seq_file.h +++ b/include/linux/seq_file.h | |||
| @@ -34,6 +34,7 @@ struct seq_operations { | |||
| 34 | 34 | ||
| 35 | #define SEQ_SKIP 1 | 35 | #define SEQ_SKIP 1 |
| 36 | 36 | ||
| 37 | char *mangle_path(char *s, char *p, char *esc); | ||
| 37 | int seq_open(struct file *, const struct seq_operations *); | 38 | int seq_open(struct file *, const struct seq_operations *); |
| 38 | ssize_t seq_read(struct file *, char __user *, size_t, loff_t *); | 39 | ssize_t seq_read(struct file *, char __user *, size_t, loff_t *); |
| 39 | loff_t seq_lseek(struct file *, loff_t, int); | 40 | loff_t seq_lseek(struct file *, loff_t, int); |
| @@ -49,10 +50,11 @@ int seq_path(struct seq_file *, struct path *, char *); | |||
| 49 | int seq_dentry(struct seq_file *, struct dentry *, char *); | 50 | int seq_dentry(struct seq_file *, struct dentry *, char *); |
| 50 | int seq_path_root(struct seq_file *m, struct path *path, struct path *root, | 51 | int seq_path_root(struct seq_file *m, struct path *path, struct path *root, |
| 51 | char *esc); | 52 | char *esc); |
| 52 | int seq_bitmap(struct seq_file *m, unsigned long *bits, unsigned int nr_bits); | 53 | int seq_bitmap(struct seq_file *m, const unsigned long *bits, |
| 53 | static inline int seq_cpumask(struct seq_file *m, cpumask_t *mask) | 54 | unsigned int nr_bits); |
| 55 | static inline int seq_cpumask(struct seq_file *m, const struct cpumask *mask) | ||
| 54 | { | 56 | { |
| 55 | return seq_bitmap(m, mask->bits, NR_CPUS); | 57 | return seq_bitmap(m, mask->bits, nr_cpu_ids); |
| 56 | } | 58 | } |
| 57 | 59 | ||
| 58 | static inline int seq_nodemask(struct seq_file *m, nodemask_t *mask) | 60 | static inline int seq_nodemask(struct seq_file *m, nodemask_t *mask) |
