cregit-Linux how code gets into the kernel

Release 4.7 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 *);
 
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. lunevdenis v. lunev4197.62%150.00%
al viroal 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 mortonandrew morton8100.00%1100.00%
Total8100.00%1100.00%


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

Contributors

PersonTokensPropCommitsCommitProp
david howellsdavid 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
pre-gitpre-git2592.59%250.00%
roland dreierroland dreier13.70%125.00%
linus torvaldslinus torvalds13.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
pre-gitpre-git2195.45%266.67%
linus torvaldslinus torvalds14.55%133.33%
Total22100.00%3100.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 howellsdavid 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 dunlaprandy dunlap2496.00%150.00%
al viroal 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 howellsdavid 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 howellsdavid howells17100.00%1100.00%
Total17100.00%1100.00%


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

Contributors

PersonTokensPropCommitsCommitProp
david howellsdavid 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 howellsdavid howells1575.00%150.00%
al viroal viro525.00%150.00%
Total20100.00%2100.00%


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

Contributors

PersonTokensPropCommitsCommitProp
david howellsdavid howells872.73%150.00%
al viroal 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 howellsdavid howells1155.00%125.00%
eric w. biedermaneric w. biederman840.00%250.00%
al viroal viro15.00%125.00%
Total20100.00%4100.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 howellsdavid howells36100.00%1100.00%
Total36100.00%1100.00%

#endif /* _LINUX_PROC_FS_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
david howellsdavid howells29752.75%618.75%
pre-gitpre-git10017.76%825.00%
denis v. lunevdenis v. lunev539.41%13.12%
randy dunlaprandy dunlap244.26%13.12%
al viroal viro234.09%39.38%
andrew mortonandrew morton234.09%39.38%
eric w. biedermaneric w. biederman173.02%412.50%
alexey dobriyanalexey dobriyan152.66%13.12%
linus torvaldslinus torvalds50.89%26.25%
jeff laytonjeff layton30.53%13.12%
ben nizetteben nizette20.36%13.12%
roland dreierroland dreier10.18%13.12%
Total563100.00%32100.00%
Directory: include/linux
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
{% endraw %}