Release 4.18 include/linux/proc_fs.h
/* SPDX-License-Identifier: GPL-2.0 */
/*
* The proc filesystem constants/structures
*/
#ifndef _LINUX_PROC_FS_H
#define _LINUX_PROC_FS_H
#include <linux/types.h>
#include <linux/fs.h>
struct proc_dir_entry;
struct seq_file;
struct seq_operations;
#ifdef CONFIG_PROC_FS
typedef int (*proc_write_t)(struct file *, char *, size_t);
extern void proc_root_init(void);
extern void proc_flush_task(struct task_struct *);
extern struct proc_dir_entry *proc_symlink(const char *,
struct proc_dir_entry *, const char *);
extern struct proc_dir_entry *proc_mkdir(const char *, struct proc_dir_entry *);
extern struct proc_dir_entry *proc_mkdir_data(const char *, umode_t,
struct proc_dir_entry *, void *);
extern struct proc_dir_entry *proc_mkdir_mode(const char *, umode_t,
struct proc_dir_entry *);
struct proc_dir_entry *proc_create_mount_point(const char *name);
struct proc_dir_entry *proc_create_seq_private(const char *name, umode_t mode,
struct proc_dir_entry *parent, const struct seq_operations *ops,
unsigned int state_size, void *data);
#define proc_create_seq_data(name, mode, parent, ops, data) \
proc_create_seq_private(name, mode, parent, ops, 0, data)
#define proc_create_seq(name, mode, parent, ops) \
proc_create_seq_private(name, mode, parent, ops, 0, NULL)
struct proc_dir_entry *proc_create_single_data(const char *name, umode_t mode,
struct proc_dir_entry *parent,
int (*show)(struct seq_file *, void *), void *data);
#define proc_create_single(name, mode, parent, show) \
proc_create_single_data(name, mode, parent, show, NULL)
extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
struct proc_dir_entry *,
const struct file_operations *,
void *);
struct proc_dir_entry *proc_create(const char *name, umode_t mode, struct proc_dir_entry *parent, const struct file_operations *proc_fops);
extern void proc_set_size(struct proc_dir_entry *, loff_t);
extern void proc_set_user(struct proc_dir_entry *, kuid_t, kgid_t);
extern void *PDE_DATA(const struct inode *);
extern void *proc_get_parent_data(const struct inode *);
extern void proc_remove(struct proc_dir_entry *);
extern void remove_proc_entry(const char *, struct proc_dir_entry *);
extern int remove_proc_subtree(const char *, struct proc_dir_entry *);
struct proc_dir_entry *proc_create_net_data(const char *name, umode_t mode,
struct proc_dir_entry *parent, const struct seq_operations *ops,
unsigned int state_size, void *data);
#define proc_create_net(name, mode, parent, state_size, ops) \
proc_create_net_data(name, mode, parent, state_size, ops, NULL)
struct proc_dir_entry *proc_create_net_single(const char *name, umode_t mode,
struct proc_dir_entry *parent,
int (*show)(struct seq_file *, void *), void *data);
struct proc_dir_entry *proc_create_net_data_write(const char *name, umode_t mode,
struct proc_dir_entry *parent,
const struct seq_operations *ops,
proc_write_t write,
unsigned int state_size, void *data);
struct proc_dir_entry *proc_create_net_single_write(const char *name, umode_t mode,
struct proc_dir_entry *parent,
int (*show)(struct seq_file *, void *),
proc_write_t write,
void *data);
#else /* CONFIG_PROC_FS */
static inline void proc_root_init(void)
{
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Andrew Morton | 8 | 100.00% | 1 | 100.00% |
Total | 8 | 100.00% | 1 | 100.00% |
static inline void proc_flush_task(struct task_struct *task)
{
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Howells | 11 | 100.00% | 2 | 100.00% |
Total | 11 | 100.00% | 2 | 100.00% |
static inline struct proc_dir_entry *proc_symlink(const char *name,
struct proc_dir_entry *parent,const char *dest) { return NULL;}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 25 | 92.59% | 2 | 50.00% |
Roland Dreier | 1 | 3.70% | 1 | 25.00% |
Linus Torvalds | 1 | 3.70% | 1 | 25.00% |
Total | 27 | 100.00% | 4 | 100.00% |
static inline struct proc_dir_entry *proc_mkdir(const char *name,
struct proc_dir_entry *parent) {return NULL;}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 21 | 95.45% | 2 | 66.67% |
Linus Torvalds | 1 | 4.55% | 1 | 33.33% |
Total | 22 | 100.00% | 3 | 100.00% |
static inline struct proc_dir_entry *proc_create_mount_point(const char *name) { return NULL; }
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Seth Forshee | 17 | 100.00% | 1 | 100.00% |
Total | 17 | 100.00% | 1 | 100.00% |
static inline struct proc_dir_entry *proc_mkdir_data(const char *name,
umode_t mode, struct proc_dir_entry *parent, void *data) { return NULL; }
Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Howells | 29 | 100.00% | 1 | 100.00% |
Total | 29 | 100.00% | 1 | 100.00% |
static inline struct proc_dir_entry *proc_mkdir_mode(const char *name,
umode_t mode, struct proc_dir_entry *parent) { return NULL; }
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Randy Dunlap | 24 | 96.00% | 1 | 50.00% |
Al Viro | 1 | 4.00% | 1 | 50.00% |
Total | 25 | 100.00% | 2 | 100.00% |
#define proc_create_seq_private(name, mode, parent, ops, size, data) ({NULL;})
#define proc_create_seq_data(name, mode, parent, ops, data) ({NULL;})
#define proc_create_seq(name, mode, parent, ops) ({NULL;})
#define proc_create_single(name, mode, parent, show) ({NULL;})
#define proc_create_single_data(name, mode, parent, show, data) ({NULL;})
#define proc_create(name, mode, parent, proc_fops) ({NULL;})
#define proc_create_data(name, mode, parent, proc_fops, data) ({NULL;})
static inline void proc_set_size(struct proc_dir_entry *de, loff_t size) {}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Howells | 14 | 100.00% | 1 | 100.00% |
Total | 14 | 100.00% | 1 | 100.00% |
static inline void proc_set_user(struct proc_dir_entry *de, kuid_t uid, kgid_t gid) {}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Howells | 17 | 100.00% | 1 | 100.00% |
Total | 17 | 100.00% | 1 | 100.00% |
static inline void *PDE_DATA(const struct inode *inode) {BUG(); return NULL;}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Howells | 20 | 100.00% | 1 | 100.00% |
Total | 20 | 100.00% | 1 | 100.00% |
static inline void *proc_get_parent_data(const struct inode *inode) { BUG(); return NULL; }
Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Howells | 15 | 75.00% | 1 | 50.00% |
Al Viro | 5 | 25.00% | 1 | 50.00% |
Total | 20 | 100.00% | 2 | 100.00% |
static inline void proc_remove(struct proc_dir_entry *de) {}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Howells | 8 | 72.73% | 1 | 50.00% |
Al Viro | 3 | 27.27% | 1 | 50.00% |
Total | 11 | 100.00% | 2 | 100.00% |
#define remove_proc_entry(name, parent) do {} while (0)
static inline int remove_proc_subtree(const char *name, struct proc_dir_entry *parent) { return 0; }
Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Howells | 12 | 60.00% | 1 | 33.33% |
Eric W. Biedermann | 7 | 35.00% | 1 | 33.33% |
Al Viro | 1 | 5.00% | 1 | 33.33% |
Total | 20 | 100.00% | 3 | 100.00% |
#define proc_create_net_data(name, mode, parent, ops, state_size, data) ({NULL;})
#define proc_create_net(name, mode, parent, state_size, ops) ({NULL;})
#define proc_create_net_single(name, mode, parent, show, data) ({NULL;})
#endif /* CONFIG_PROC_FS */
struct net;
static inline struct proc_dir_entry *proc_net_mkdir(
struct net *net, const char *name, struct proc_dir_entry *parent)
{
return proc_mkdir_data(name, 0, parent, net);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Howells | 36 | 100.00% | 1 | 100.00% |
Total | 36 | 100.00% | 1 | 100.00% |
struct ns_common;
int open_related_ns(struct ns_common *ns,
struct ns_common *(*get_ns)(struct ns_common *ns));
/* get the associated pid namespace for a file in procfs */
static inline struct pid_namespace *proc_pid_ns(struct inode *inode)
{
return inode->i_sb->s_fs_info;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Christoph Hellwig | 21 | 100.00% | 1 | 100.00% |
Total | 21 | 100.00% | 1 | 100.00% |
#endif /* _LINUX_PROC_FS_H */
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Howells | 391 | 37.52% | 7 | 16.67% |
Christoph Hellwig | 348 | 33.40% | 6 | 14.29% |
Linus Torvalds (pre-git) | 100 | 9.60% | 8 | 19.05% |
Denis V. Lunev | 35 | 3.36% | 1 | 2.38% |
Seth Forshee | 28 | 2.69% | 1 | 2.38% |
Andrey Vagin | 26 | 2.50% | 1 | 2.38% |
Randy Dunlap | 24 | 2.30% | 1 | 2.38% |
Al Viro | 23 | 2.21% | 3 | 7.14% |
Andrew Morton | 23 | 2.21% | 3 | 7.14% |
Eric W. Biedermann | 16 | 1.54% | 3 | 7.14% |
Alexey Dobriyan | 16 | 1.54% | 2 | 4.76% |
Linus Torvalds | 5 | 0.48% | 2 | 4.76% |
Jeff Layton | 3 | 0.29% | 1 | 2.38% |
Ben Nizette | 2 | 0.19% | 1 | 2.38% |
Roland Dreier | 1 | 0.10% | 1 | 2.38% |
Greg Kroah-Hartman | 1 | 0.10% | 1 | 2.38% |
Total | 1042 | 100.00% | 42 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.