Changeset 679 for GPL/trunk/include/linux/proc_fs.h
- Timestamp:
- Mar 18, 2021, 8:57:36 PM (4 years ago)
- Location:
- GPL/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk
- Property svn:mergeinfo changed
/GPL/branches/uniaud32-linux-3.2.102 (added) merged: 611-614 /GPL/branches/uniaud32-next (added) merged: 615-678
- Property svn:mergeinfo changed
-
GPL/trunk/include/linux/proc_fs.h
r441 r679 8 8 * The proc filesystem constants/structures 9 9 */ 10 11 struct proc_ops { 12 int (*proc_open)(struct inode *, struct file *); 13 ssize_t (*proc_read)(struct file *, char __user *, size_t, loff_t *); 14 ssize_t (*proc_write)(struct file *, const char __user *, size_t, loff_t *); 15 loff_t (*proc_lseek)(struct file *, loff_t, int); 16 int (*proc_release)(struct inode *, struct file *); 17 __poll_t (*proc_poll)(struct file *, struct poll_table_struct *); 18 long (*proc_ioctl)(struct file *, unsigned int, unsigned long); 19 #ifdef CONFIG_COMPAT 20 long (*proc_compat_ioctl)(struct file *, unsigned int, unsigned long); 21 #endif 22 int (*proc_mmap)(struct file *, struct vm_area_struct *); 23 unsigned long (*proc_get_unmapped_area)(struct file *, unsigned long, unsigned long, unsigned long, unsigned long); 24 }; 10 25 11 26 /* … … 84 99 85 100 #ifdef CONFIG_PROC_FS 86 87 101 extern struct proc_dir_entry proc_root; 88 102 extern struct proc_dir_entry *proc_root_fs; … … 208 222 struct proc_dir_entry *proc_net_create(const char *name); 209 223 void proc_net_remove(const char *name); 210 224 static inline void proc_remove(struct proc_dir_entry *de) {} 211 225 #else 212 226 … … 233 247 234 248 extern struct proc_dir_entry proc_root; 235 249 static inline void proc_remove(struct proc_dir_entry *de) {} 250 static inline void *PDE_DATA(const struct inode *inode) {return NULL;} 236 251 #endif /* CONFIG_PROC_FS */ 237 252 … … 240 255 return (struct proc_dir_entry *) inode->u.generic_ip; 241 256 } 242 257 static inline void *PDE_DATA(const struct inode *inode) {return NULL;} 258 259 extern struct proc_dir_entry *proc_symlink(const char *, 260 struct proc_dir_entry *, const char *); 261 extern struct proc_dir_entry *proc_mkdir(const char *, struct proc_dir_entry *); 243 262 #endif /* _LINUX_PROC_FS_H */
Note:
See TracChangeset
for help on using the changeset viewer.