]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - include/linux/devpts_fs.h
277ab9af9ac29a95773ce2201809f7c7613391a1
[karo-tx-linux.git] / include / linux / devpts_fs.h
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
13 #ifndef _LINUX_DEVPTS_FS_H
14 #define _LINUX_DEVPTS_FS_H
15
16 #include <linux/errno.h>
17
18 #ifdef CONFIG_UNIX98_PTYS
19
20 struct pts_fs_info;
21
22 struct pts_fs_info *devpts_acquire(struct file *);
23 void devpts_release(struct pts_fs_info *);
24
25 int devpts_new_index(struct pts_fs_info *);
26 void devpts_kill_index(struct pts_fs_info *, int);
27
28 /* mknod in devpts */
29 struct dentry *devpts_pty_new(struct pts_fs_info *, int, void *);
30 /* get private structure */
31 void *devpts_get_priv(struct dentry *);
32 /* unlink */
33 void devpts_pty_kill(struct dentry *);
34
35 #endif
36
37
38 #endif /* _LINUX_DEVPTS_FS_H */