devpts_fs.h 1.0 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. #ifdef CONFIG_UNIX98_PTYS
  16. struct pts_fs_info;
  17. struct pts_fs_info *devpts_acquire(struct file *);
  18. void devpts_release(struct pts_fs_info *);
  19. int devpts_new_index(struct pts_fs_info *);
  20. void devpts_kill_index(struct pts_fs_info *, int);
  21. /* mknod in devpts */
  22. struct dentry *devpts_pty_new(struct pts_fs_info *, int, void *);
  23. /* get private structure */
  24. void *devpts_get_priv(struct dentry *);
  25. /* unlink */
  26. void devpts_pty_kill(struct dentry *);
  27. #endif
  28. #endif /* _LINUX_DEVPTS_FS_H */