1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /* -*- linux-c -*- --------------------------------------------------------- *
4 * linux/include/linux/devpts_fs.h
6 * Copyright 1998-2004 H. Peter Anvin -- All Rights Reserved
8 * ------------------------------------------------------------------------- */
10 #ifndef _LINUX_DEVPTS_FS_H
11 #define _LINUX_DEVPTS_FS_H
13 #include <linux/errno.h>
15 #ifdef CONFIG_UNIX98_PTYS
19 struct vfsmount
*devpts_mntget(struct file
*, struct pts_fs_info
*);
20 struct pts_fs_info
*devpts_acquire(struct file
*);
21 void devpts_release(struct pts_fs_info
*);
23 int devpts_new_index(struct pts_fs_info
*);
24 void devpts_kill_index(struct pts_fs_info
*, int);
27 struct dentry
*devpts_pty_new(struct pts_fs_info
*, int, void *);
28 /* get private structure */
29 void *devpts_get_priv(struct dentry
*);
31 void devpts_pty_kill(struct dentry
*);
34 int ptm_open_peer(struct file
*master
, struct tty_struct
*tty
, int flags
);
38 ptm_open_peer(struct file
*master
, struct tty_struct
*tty
, int flags
)
45 #endif /* _LINUX_DEVPTS_FS_H */