mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-22 22:24:13 +07:00
d691005856
Based on 1 normalized pattern(s): 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 extracted by the scancode license scanner the SPDX license identifier GPL-2.0-or-later has been chosen to replace the boilerplate/reference in 18 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Richard Fontana <rfontana@redhat.com> Reviewed-by: Allison Randal <allison@lohutok.net> Reviewed-by: Armijn Hemel <armijn@tjaldur.nl> Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190520075211.321157221@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
46 lines
1.1 KiB
C
46 lines
1.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/* -*- linux-c -*- --------------------------------------------------------- *
|
|
*
|
|
* linux/include/linux/devpts_fs.h
|
|
*
|
|
* Copyright 1998-2004 H. Peter Anvin -- All Rights Reserved
|
|
*
|
|
* ------------------------------------------------------------------------- */
|
|
|
|
#ifndef _LINUX_DEVPTS_FS_H
|
|
#define _LINUX_DEVPTS_FS_H
|
|
|
|
#include <linux/errno.h>
|
|
|
|
#ifdef CONFIG_UNIX98_PTYS
|
|
|
|
struct pts_fs_info;
|
|
|
|
struct vfsmount *devpts_mntget(struct file *, struct pts_fs_info *);
|
|
struct pts_fs_info *devpts_acquire(struct file *);
|
|
void devpts_release(struct pts_fs_info *);
|
|
|
|
int devpts_new_index(struct pts_fs_info *);
|
|
void devpts_kill_index(struct pts_fs_info *, int);
|
|
|
|
/* mknod in devpts */
|
|
struct dentry *devpts_pty_new(struct pts_fs_info *, int, void *);
|
|
/* get private structure */
|
|
void *devpts_get_priv(struct dentry *);
|
|
/* unlink */
|
|
void devpts_pty_kill(struct dentry *);
|
|
|
|
/* in pty.c */
|
|
int ptm_open_peer(struct file *master, struct tty_struct *tty, int flags);
|
|
|
|
#else
|
|
static inline int
|
|
ptm_open_peer(struct file *master, struct tty_struct *tty, int flags)
|
|
{
|
|
return -EIO;
|
|
}
|
|
#endif
|
|
|
|
|
|
#endif /* _LINUX_DEVPTS_FS_H */
|