blob: 277ab9af9ac29a95773ce2201809f7c7613391a1 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/* -*- 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
Eric W. Biedermaneedf2652016-06-02 10:29:47 -050020struct pts_fs_info;
21
22struct pts_fs_info *devpts_acquire(struct file *);
23void devpts_release(struct pts_fs_info *);
Linus Torvalds67245ff2016-04-16 15:16:07 -070024
25int devpts_new_index(struct pts_fs_info *);
26void devpts_kill_index(struct pts_fs_info *, int);
27
Sukadev Bhattiprolu15f1a632008-10-13 10:42:59 +010028/* mknod in devpts */
Linus Torvalds8ead9dd2016-04-25 20:04:08 -070029struct dentry *devpts_pty_new(struct pts_fs_info *, int, void *);
Jiri Slaby8fcbaa22012-10-18 22:26:27 +020030/* get private structure */
Linus Torvalds8ead9dd2016-04-25 20:04:08 -070031void *devpts_get_priv(struct dentry *);
Sukadev Bhattiprolu15f1a632008-10-13 10:42:59 +010032/* unlink */
Linus Torvalds8ead9dd2016-04-25 20:04:08 -070033void devpts_pty_kill(struct dentry *);
Linus Torvalds1da177e2005-04-16 15:20:36 -070034
Linus Torvalds1da177e2005-04-16 15:20:36 -070035#endif
36
37
38#endif /* _LINUX_DEVPTS_FS_H */