devpts_fs.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* -*- linux-c -*- --------------------------------------------------------- *
  2. *
  3. * linux/include/linux/devpts_fs.h
  4. *
  5. * Copyright 1998-2004 H. Peter Anvin -- All Rights Reserved
  6. *
  7. * This file is part of the Linux kernel and is made available under
  8. * the terms of the GNU General Public License, version 2, or at your
  9. * option, any later version, incorporated herein by reference.
  10. *
  11. * ------------------------------------------------------------------------- */
  12. #ifndef _LINUX_DEVPTS_FS_H
  13. #define _LINUX_DEVPTS_FS_H
  14. #include <linux/errno.h>
  15. struct pts_fs_info;
  16. #ifdef CONFIG_UNIX98_PTYS
  17. /* Look up a pts fs info and get a ref to it */
  18. struct pts_fs_info *devpts_get_ref(struct inode *, struct file *);
  19. void devpts_put_ref(struct pts_fs_info *);
  20. int devpts_new_index(struct pts_fs_info *);
  21. void devpts_kill_index(struct pts_fs_info *, int);
  22. /* mknod in devpts */
  23. struct inode *devpts_pty_new(struct pts_fs_info *, dev_t, int, void *);
  24. /* get private structure */
  25. void *devpts_get_priv(struct inode *pts_inode);
  26. /* unlink */
  27. void devpts_pty_kill(struct inode *inode);
  28. #endif
  29. #endif /* _LINUX_DEVPTS_FS_H */