|
@@ -19,6 +19,8 @@
|
|
|
|
|
|
|
|
int devpts_new_index(struct inode *ptmx_inode);
|
|
int devpts_new_index(struct inode *ptmx_inode);
|
|
|
void devpts_kill_index(struct inode *ptmx_inode, int idx);
|
|
void devpts_kill_index(struct inode *ptmx_inode, int idx);
|
|
|
|
|
+void devpts_add_ref(struct inode *ptmx_inode);
|
|
|
|
|
+void devpts_del_ref(struct inode *ptmx_inode);
|
|
|
/* mknod in devpts */
|
|
/* mknod in devpts */
|
|
|
struct inode *devpts_pty_new(struct inode *ptmx_inode, dev_t device, int index,
|
|
struct inode *devpts_pty_new(struct inode *ptmx_inode, dev_t device, int index,
|
|
|
void *priv);
|
|
void *priv);
|
|
@@ -32,6 +34,8 @@ void devpts_pty_kill(struct inode *inode);
|
|
|
/* Dummy stubs in the no-pty case */
|
|
/* Dummy stubs in the no-pty case */
|
|
|
static inline int devpts_new_index(struct inode *ptmx_inode) { return -EINVAL; }
|
|
static inline int devpts_new_index(struct inode *ptmx_inode) { return -EINVAL; }
|
|
|
static inline void devpts_kill_index(struct inode *ptmx_inode, int idx) { }
|
|
static inline void devpts_kill_index(struct inode *ptmx_inode, int idx) { }
|
|
|
|
|
+static inline void devpts_add_ref(struct inode *ptmx_inode) { }
|
|
|
|
|
+static inline void devpts_del_ref(struct inode *ptmx_inode) { }
|
|
|
static inline struct inode *devpts_pty_new(struct inode *ptmx_inode,
|
|
static inline struct inode *devpts_pty_new(struct inode *ptmx_inode,
|
|
|
dev_t device, int index, void *priv)
|
|
dev_t device, int index, void *priv)
|
|
|
{
|
|
{
|