Files
linux-apfs/include/linux/devpts_fs.h
T

39 lines
1.0 KiB
C
Raw Normal View History

2005-04-16 15:20:36 -07:00
/* -*- linux-c -*- --------------------------------------------------------- *
*
* linux/include/linux/devpts_fs.h
*
* Copyright 1998-2004 H. Peter Anvin -- All Rights Reserved
*
* This file is part of the Linux kernel and is made available under
* the terms of the GNU General Public License, version 2, or at your
* option, any later version, incorporated herein by reference.
*
* ------------------------------------------------------------------------- */
#ifndef _LINUX_DEVPTS_FS_H
#define _LINUX_DEVPTS_FS_H
#include <linux/errno.h>
#ifdef CONFIG_UNIX98_PTYS
struct pts_fs_info;
struct pts_fs_info *devpts_acquire(struct file *);
void devpts_release(struct pts_fs_info *);
2016-04-16 15:16:07 -07:00
int devpts_new_index(struct pts_fs_info *);
void devpts_kill_index(struct pts_fs_info *, int);
2008-10-13 10:42:59 +01:00
/* mknod in devpts */
2016-04-25 20:04:08 -07:00
struct dentry *devpts_pty_new(struct pts_fs_info *, int, void *);
/* get private structure */
2016-04-25 20:04:08 -07:00
void *devpts_get_priv(struct dentry *);
2008-10-13 10:42:59 +01:00
/* unlink */
2016-04-25 20:04:08 -07:00
void devpts_pty_kill(struct dentry *);
2005-04-16 15:20:36 -07:00
#endif
#endif /* _LINUX_DEVPTS_FS_H */