resources.h 1.1 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_getnames(void __user *buf, int __user *iobuf_len);
  11. int atm_dev_ioctl(unsigned int cmd, void __user *buf, int __user *sioc_len,
  12. int number, int compat);
  13. #ifdef CONFIG_PROC_FS
  14. #include <linux/proc_fs.h>
  15. void *atm_dev_seq_start(struct seq_file *seq, loff_t *pos);
  16. void atm_dev_seq_stop(struct seq_file *seq, void *v);
  17. void *atm_dev_seq_next(struct seq_file *seq, void *v, loff_t *pos);
  18. int atm_proc_dev_register(struct atm_dev *dev);
  19. void atm_proc_dev_deregister(struct atm_dev *dev);
  20. #else
  21. static inline int atm_proc_dev_register(struct atm_dev *dev)
  22. {
  23. return 0;
  24. }
  25. static inline void atm_proc_dev_deregister(struct atm_dev *dev)
  26. {
  27. /* nothing */
  28. }
  29. #endif /* CONFIG_PROC_FS */
  30. int atm_register_sysfs(struct atm_dev *adev, struct device *parent);
  31. void atm_unregister_sysfs(struct atm_dev *adev);
  32. #endif