cregit-Linux how code gets into the kernel

Release 4.12 include/linux/proc_fs.h

Directory: include/linux
/*
 * 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;

#ifdef CONFIG_PROC_FS

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);
 
extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
					       struct proc_dir_entry *,
					       const struct file_operations *,
					       void *);


static inline struct proc_dir_entry *proc_create( const char *name, umode_t mode, struct proc_dir_entry *parent, const struct file_operations *proc_fops) { return proc_create_data(name, mode, parent, proc_fops, NULL); }

Contributors

PersonTokensPropCommitsCommitProp
Denis V. Lunev4197.62%150.00%
Al Viro12.38%150.00%
Total42100.00%2100.00%

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 *); #else /* CONFIG_PROC_FS */
static inline void proc_root_init(void) { }

Contributors

PersonTokensPropCommitsCommitProp
Andrew Morton8100.00%1100.00%
Total8100.00%1100.00%


static inline void proc_flush_task(struct task_struct *task) { }

Contributors

PersonTokensPropCommitsCommitProp
David Howells11100.00%2100.00%
Total11100.00%2100.00%


static inline struct proc_dir_entry *proc_symlink(const char *name, struct proc_dir_entry *parent,const char *dest) { return NULL;}

Contributors

PersonTokensPropCommitsCommitProp
Linus Torvalds (pre-git)2592.59%250.00%
Linus Torvalds13.70%125.00%
Roland Dreier13.70%125.00%
Total27100.00%4100.00%


static inline struct proc_dir_entry *proc_mkdir(const char *name, struct proc_dir_entry *parent) {return NULL;}

Contributors

PersonTokensPropCommitsCommitProp
Linus Torvalds (pre-git)2195.45%266.67%
Linus Torvalds14.55%133.33%
Total22100.00%3100.00%


static inline struct proc_dir_entry *proc_create_mount_point(const char *name) { return NULL; }

Contributors

PersonTokensPropCommitsCommitProp
Seth Forshee17100.00%1100.00%
Total17100.00%1100.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

PersonTokensPropCommitsCommitProp
David Howells29100.00%1100.00%
Total29100.00%1100.00%


static inline struct proc_dir_entry *proc_mkdir_mode(const char *name, umode_t mode, struct proc_dir_entry *parent) { return NULL; }

Contributors

PersonTokensPropCommitsCommitProp
Randy Dunlap2496.00%150.00%
Al Viro14.00%150.00%
Total25100.00%2100.00%

#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

PersonTokensPropCommitsCommitProp
David Howells14100.00%1100.00%
Total14100.00%1100.00%


static inline void proc_set_user(struct proc_dir_entry *de, kuid_t uid, kgid_t gid) {}

Contributors

PersonTokensPropCommitsCommitProp
David Howells17100.00%1100.00%
Total17100.00%1100.00%


static inline void *PDE_DATA(const struct inode *inode) {BUG(); return NULL;}

Contributors

PersonTokensPropCommitsCommitProp
David Howells20100.00%1100.00%
Total20100.00%1100.00%


static inline void *proc_get_parent_data(const struct inode *inode) { BUG(); return NULL; }

Contributors

PersonTokensPropCommitsCommitProp
David Howells1575.00%150.00%
Al Viro525.00%150.00%
Total20100.00%2100.00%


static inline void proc_remove(struct proc_dir_entry *de) {}

Contributors

PersonTokensPropCommitsCommitProp
David Howells872.73%150.00%
Al Viro327.27%150.00%
Total11100.00%2100.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

PersonTokensPropCommitsCommitProp
David Howells1260.00%133.33%
Eric W. Biedermann735.00%133.33%
Al Viro15.00%133.33%
Total20100.00%3100.00%

#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

PersonTokensPropCommitsCommitProp
David Howells36100.00%1100.00%
Total36100.00%1100.00%

struct ns_common; int open_related_ns(struct ns_common *ns, struct ns_common *(*get_ns)(struct ns_common *ns)); #endif /* _LINUX_PROC_FS_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
David Howells29848.30%617.65%
Linus Torvalds (pre-git)10016.21%823.53%
Denis V. Lunev538.59%12.94%
Seth Forshee284.54%12.94%
Andrey Vagin264.21%12.94%
Randy Dunlap243.89%12.94%
Al Viro233.73%38.82%
Andrew Morton233.73%38.82%
Eric W. Biedermann162.59%38.82%
Alexey Dobriyan162.59%25.88%
Linus Torvalds50.81%25.88%
Jeff Layton30.49%12.94%
Ben Nizette10.16%12.94%
Roland Dreier10.16%12.94%
Total617100.00%34100.00%
Directory: include/linux
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.