]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - include/linux/devpts_fs.h
Revert "pty: fix the cached path of the pty slave file descriptor in the master"
[mirror_ubuntu-artful-kernel.git] / include / linux / devpts_fs.h
CommitLineData
1da177e4
LT
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
eedf265a
EB
20struct pts_fs_info;
21
143c97cc 22struct pts_fs_info *devpts_acquire(struct file *);
eedf265a 23void devpts_release(struct pts_fs_info *);
67245ff3
LT
24
25int devpts_new_index(struct pts_fs_info *);
26void devpts_kill_index(struct pts_fs_info *, int);
27
15f1a633 28/* mknod in devpts */
8ead9dd5 29struct dentry *devpts_pty_new(struct pts_fs_info *, int, void *);
8fcbaa2b 30/* get private structure */
8ead9dd5 31void *devpts_get_priv(struct dentry *);
15f1a633 32/* unlink */
8ead9dd5 33void devpts_pty_kill(struct dentry *);
1da177e4 34
1da177e4
LT
35#endif
36
37
38#endif /* _LINUX_DEVPTS_FS_H */