]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - include/linux/devpts_fs.h
ipv6: initialize route null entry in addrconf_init()
[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
3b318a91
LT
18struct pts_fs_info;
19
1da177e4
LT
20#ifdef CONFIG_UNIX98_PTYS
21
3b318a91
LT
22/* Look up a pts fs info and get a ref to it */
23struct pts_fs_info *devpts_get_ref(struct inode *, struct file *);
24void devpts_put_ref(struct pts_fs_info *);
25
26int devpts_new_index(struct pts_fs_info *);
27void devpts_kill_index(struct pts_fs_info *, int);
28
15f1a633 29/* mknod in devpts */
3b318a91 30struct inode *devpts_pty_new(struct pts_fs_info *, dev_t, int, void *);
8fcbaa2b
JS
31/* get private structure */
32void *devpts_get_priv(struct inode *pts_inode);
15f1a633 33/* unlink */
f11afb61 34void devpts_pty_kill(struct inode *inode);
1da177e4 35
1da177e4
LT
36#endif
37
38
39#endif /* _LINUX_DEVPTS_FS_H */