Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /* net/atm/resources.h - ATM-related resources */
0003 
0004 /* Written 1995-1998 by Werner Almesberger, EPFL LRC/ICA */
0005 
0006 
0007 #ifndef NET_ATM_RESOURCES_H
0008 #define NET_ATM_RESOURCES_H
0009 
0010 #include <linux/atmdev.h>
0011 #include <linux/mutex.h>
0012 
0013 
0014 extern struct list_head atm_devs;
0015 extern struct mutex atm_dev_mutex;
0016 
0017 int atm_getnames(void __user *buf, int __user *iobuf_len);
0018 int atm_dev_ioctl(unsigned int cmd, void __user *buf, int __user *sioc_len,
0019           int number, int compat);
0020 
0021 #ifdef CONFIG_PROC_FS
0022 
0023 #include <linux/proc_fs.h>
0024 
0025 void *atm_dev_seq_start(struct seq_file *seq, loff_t *pos);
0026 void atm_dev_seq_stop(struct seq_file *seq, void *v);
0027 void *atm_dev_seq_next(struct seq_file *seq, void *v, loff_t *pos);
0028 
0029 
0030 int atm_proc_dev_register(struct atm_dev *dev);
0031 void atm_proc_dev_deregister(struct atm_dev *dev);
0032 
0033 #else
0034 
0035 static inline int atm_proc_dev_register(struct atm_dev *dev)
0036 {
0037     return 0;
0038 }
0039 
0040 static inline void atm_proc_dev_deregister(struct atm_dev *dev)
0041 {
0042     /* nothing */
0043 }
0044 
0045 #endif /* CONFIG_PROC_FS */
0046 
0047 int atm_register_sysfs(struct atm_dev *adev, struct device *parent);
0048 void atm_unregister_sysfs(struct atm_dev *adev);
0049 #endif