proc_fs.h (22e6c1b39c648850438decd491f62d311800c7db) | proc_fs.h (99ac48f54a91d02140c497edc31dc57d4bc5c85d) |
---|---|
1#ifndef _LINUX_PROC_FS_H 2#define _LINUX_PROC_FS_H 3 4#include <linux/config.h> 5#include <linux/slab.h> 6#include <linux/fs.h> 7#include <linux/spinlock.h> 8#include <asm/atomic.h> --- 44 unchanged lines hidden (view full) --- 53 unsigned short namelen; 54 const char *name; 55 mode_t mode; 56 nlink_t nlink; 57 uid_t uid; 58 gid_t gid; 59 loff_t size; 60 struct inode_operations * proc_iops; | 1#ifndef _LINUX_PROC_FS_H 2#define _LINUX_PROC_FS_H 3 4#include <linux/config.h> 5#include <linux/slab.h> 6#include <linux/fs.h> 7#include <linux/spinlock.h> 8#include <asm/atomic.h> --- 44 unchanged lines hidden (view full) --- 53 unsigned short namelen; 54 const char *name; 55 mode_t mode; 56 nlink_t nlink; 57 uid_t uid; 58 gid_t gid; 59 loff_t size; 60 struct inode_operations * proc_iops; |
61 struct file_operations * proc_fops; | 61 const struct file_operations * proc_fops; |
62 get_info_t *get_info; 63 struct module *owner; 64 struct proc_dir_entry *next, *parent, *subdir; 65 void *data; 66 read_proc_t *read_proc; 67 write_proc_t *write_proc; 68 atomic_t count; /* use count */ 69 int deleted; /* delete flag */ --- 114 unchanged lines hidden (view full) --- 184 185static inline struct proc_dir_entry *proc_net_create(const char *name, 186 mode_t mode, get_info_t *get_info) 187{ 188 return create_proc_info_entry(name,mode,proc_net,get_info); 189} 190 191static inline struct proc_dir_entry *proc_net_fops_create(const char *name, | 62 get_info_t *get_info; 63 struct module *owner; 64 struct proc_dir_entry *next, *parent, *subdir; 65 void *data; 66 read_proc_t *read_proc; 67 write_proc_t *write_proc; 68 atomic_t count; /* use count */ 69 int deleted; /* delete flag */ --- 114 unchanged lines hidden (view full) --- 184 185static inline struct proc_dir_entry *proc_net_create(const char *name, 186 mode_t mode, get_info_t *get_info) 187{ 188 return create_proc_info_entry(name,mode,proc_net,get_info); 189} 190 191static inline struct proc_dir_entry *proc_net_fops_create(const char *name, |
192 mode_t mode, struct file_operations *fops) | 192 mode_t mode, const struct file_operations *fops) |
193{ 194 struct proc_dir_entry *res = create_proc_entry(name, mode, proc_net); 195 if (res) 196 res->proc_fops = fops; 197 return res; 198} 199 200static inline void proc_net_remove(const char *name) --- 72 unchanged lines hidden --- | 193{ 194 struct proc_dir_entry *res = create_proc_entry(name, mode, proc_net); 195 if (res) 196 res->proc_fops = fops; 197 return res; 198} 199 200static inline void proc_net_remove(const char *name) --- 72 unchanged lines hidden --- |