proc_fs.h (c3506372277779fccbffee2475400fcd689d5738) proc_fs.h (3617d9496cd92dcca4d0893191d95554590d8d9f)
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * The proc filesystem constants/structures
4 */
5#ifndef _LINUX_PROC_FS_H
6#define _LINUX_PROC_FS_H
7
8#include <linux/types.h>

--- 44 unchanged lines hidden (view full) ---

53extern void remove_proc_entry(const char *, struct proc_dir_entry *);
54extern int remove_proc_subtree(const char *, struct proc_dir_entry *);
55
56struct proc_dir_entry *proc_create_net_data(const char *name, umode_t mode,
57 struct proc_dir_entry *parent, const struct seq_operations *ops,
58 unsigned int state_size, void *data);
59#define proc_create_net(name, mode, parent, state_size, ops) \
60 proc_create_net_data(name, mode, parent, state_size, ops, NULL)
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * The proc filesystem constants/structures
4 */
5#ifndef _LINUX_PROC_FS_H
6#define _LINUX_PROC_FS_H
7
8#include <linux/types.h>

--- 44 unchanged lines hidden (view full) ---

53extern void remove_proc_entry(const char *, struct proc_dir_entry *);
54extern int remove_proc_subtree(const char *, struct proc_dir_entry *);
55
56struct proc_dir_entry *proc_create_net_data(const char *name, umode_t mode,
57 struct proc_dir_entry *parent, const struct seq_operations *ops,
58 unsigned int state_size, void *data);
59#define proc_create_net(name, mode, parent, state_size, ops) \
60 proc_create_net_data(name, mode, parent, state_size, ops, NULL)
61struct proc_dir_entry *proc_create_net_single(const char *name, umode_t mode,
62 struct proc_dir_entry *parent,
63 int (*show)(struct seq_file *, void *), void *data);
61
62#else /* CONFIG_PROC_FS */
63
64static inline void proc_root_init(void)
65{
66}
67
68static inline void proc_flush_task(struct task_struct *task)

--- 23 unchanged lines hidden (view full) ---

92static inline void *proc_get_parent_data(const struct inode *inode) { BUG(); return NULL; }
93
94static inline void proc_remove(struct proc_dir_entry *de) {}
95#define remove_proc_entry(name, parent) do {} while (0)
96static inline int remove_proc_subtree(const char *name, struct proc_dir_entry *parent) { return 0; }
97
98#define proc_create_net_data(name, mode, parent, ops, state_size, data) ({NULL;})
99#define proc_create_net(name, mode, parent, state_size, ops) ({NULL;})
64
65#else /* CONFIG_PROC_FS */
66
67static inline void proc_root_init(void)
68{
69}
70
71static inline void proc_flush_task(struct task_struct *task)

--- 23 unchanged lines hidden (view full) ---

95static inline void *proc_get_parent_data(const struct inode *inode) { BUG(); return NULL; }
96
97static inline void proc_remove(struct proc_dir_entry *de) {}
98#define remove_proc_entry(name, parent) do {} while (0)
99static inline int remove_proc_subtree(const char *name, struct proc_dir_entry *parent) { return 0; }
100
101#define proc_create_net_data(name, mode, parent, ops, state_size, data) ({NULL;})
102#define proc_create_net(name, mode, parent, state_size, ops) ({NULL;})
103#define proc_create_net_single(name, mode, parent, show, data) ({NULL;})
100
101#endif /* CONFIG_PROC_FS */
102
103struct net;
104
105static inline struct proc_dir_entry *proc_net_mkdir(
106 struct net *net, const char *name, struct proc_dir_entry *parent)
107{

--- 14 unchanged lines hidden ---
104
105#endif /* CONFIG_PROC_FS */
106
107struct net;
108
109static inline struct proc_dir_entry *proc_net_mkdir(
110 struct net *net, const char *name, struct proc_dir_entry *parent)
111{

--- 14 unchanged lines hidden ---