Ignore:
Timestamp:
Mar 18, 2021, 8:57:36 PM (4 years ago)
Author:
David Azarewicz
Message:

Merge changes from Paul's uniaud32next branch.

Location:
GPL/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk

  • GPL/trunk/include/linux/proc_fs.h

    r441 r679  
    88 * The proc filesystem constants/structures
    99 */
     10
     11struct 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};
    1025
    1126/*
     
    8499
    85100#ifdef CONFIG_PROC_FS
    86 
    87101extern struct proc_dir_entry proc_root;
    88102extern struct proc_dir_entry *proc_root_fs;
     
    208222struct proc_dir_entry *proc_net_create(const char *name);
    209223void proc_net_remove(const char *name);
    210 
     224static inline void proc_remove(struct proc_dir_entry *de) {}
    211225#else
    212226
     
    233247
    234248extern struct proc_dir_entry proc_root;
    235 
     249static inline void proc_remove(struct proc_dir_entry *de) {}
     250static inline void *PDE_DATA(const struct inode *inode) {return NULL;}
    236251#endif /* CONFIG_PROC_FS */
    237252
     
    240255        return (struct proc_dir_entry *) inode->u.generic_ip;
    241256}
    242 
     257static inline void *PDE_DATA(const struct inode *inode) {return NULL;}
     258
     259extern struct proc_dir_entry *proc_symlink(const char *,
     260                struct proc_dir_entry *, const char *);
     261extern struct proc_dir_entry *proc_mkdir(const char *, struct proc_dir_entry *);
    243262#endif /* _LINUX_PROC_FS_H */
Note: See TracChangeset for help on using the changeset viewer.