resources.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /* net/atm/resources.h - ATM-related resources */
  3. /* Written 1995-1998 by Werner Almesberger, EPFL LRC/ICA */
  4. #ifndef NET_ATM_RESOURCES_H
  5. #define NET_ATM_RESOURCES_H
  6. #include <linux/atmdev.h>
  7. #include <linux/mutex.h>
  8. extern struct list_head atm_devs;
  9. extern struct mutex atm_dev_mutex;
  10. int atm_dev_ioctl(unsigned int cmd, void __user *arg, int compat);
  11. #ifdef CONFIG_PROC_FS
  12. #include <linux/proc_fs.h>
  13. void *atm_dev_seq_start(struct seq_file *seq, loff_t *pos);
  14. void atm_dev_seq_stop(struct seq_file *seq, void *v);
  15. void *atm_dev_seq_next(struct seq_file *seq, void *v, loff_t *pos);
  16. int atm_proc_dev_register(struct atm_dev *dev);
  17. void atm_proc_dev_deregister(struct atm_dev *dev);
  18. #else
  19. static inline int atm_proc_dev_register(struct atm_dev *dev)
  20. {
  21. return 0;
  22. }
  23. static inline void atm_proc_dev_deregister(struct atm_dev *dev)
  24. {
  25. /* nothing */
  26. }
  27. #endif /* CONFIG_PROC_FS */
  28. int atm_register_sysfs(struct atm_dev *adev, struct device *parent);
  29. void atm_unregister_sysfs(struct atm_dev *adev);
  30. #endif