qtnfmac: let wifi card handle channel switch request to the same chan
[linux-2.6/btrfs-unstable.git] / include / linux / devpts_fs.h
blob100cb43437630114127bfecc3d29ad4454c03446
1 /* -*- linux-c -*- --------------------------------------------------------- *
3 * linux/include/linux/devpts_fs.h
5 * Copyright 1998-2004 H. Peter Anvin -- All Rights Reserved
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.
11 * ------------------------------------------------------------------------- */
13 #ifndef _LINUX_DEVPTS_FS_H
14 #define _LINUX_DEVPTS_FS_H
16 #include <linux/errno.h>
18 #ifdef CONFIG_UNIX98_PTYS
20 struct pts_fs_info;
22 struct vfsmount *devpts_mntget(struct file *, struct pts_fs_info *);
23 struct pts_fs_info *devpts_acquire(struct file *);
24 void devpts_release(struct pts_fs_info *);
26 int devpts_new_index(struct pts_fs_info *);
27 void devpts_kill_index(struct pts_fs_info *, int);
29 /* mknod in devpts */
30 struct dentry *devpts_pty_new(struct pts_fs_info *, int, void *);
31 /* get private structure */
32 void *devpts_get_priv(struct dentry *);
33 /* unlink */
34 void devpts_pty_kill(struct dentry *);
36 /* in pty.c */
37 int ptm_open_peer(struct file *master, struct tty_struct *tty, int flags);
39 #else
40 static inline int
41 ptm_open_peer(struct file *master, struct tty_struct *tty, int flags)
43 return -EIO;
45 #endif
48 #endif /* _LINUX_DEVPTS_FS_H */