summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/io/pts.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/common/io/pts.c')
-rw-r--r--usr/src/uts/common/io/pts.c19
1 files changed, 13 insertions, 6 deletions
diff --git a/usr/src/uts/common/io/pts.c b/usr/src/uts/common/io/pts.c
index 8d7bbc5586..fa7997c146 100644
--- a/usr/src/uts/common/io/pts.c
+++ b/usr/src/uts/common/io/pts.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -20,7 +19,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
@@ -231,16 +230,24 @@ pts_attach(dev_info_t *devi, ddi_attach_cmd_t cmd)
if (cmd != DDI_ATTACH)
return (DDI_FAILURE);
- return (ptms_create_pts_nodes(devi));
+ mutex_enter(&ptms_lock);
+ pts_dip = devi;
+ mutex_exit(&ptms_lock);
+
+ return (DDI_SUCCESS);
}
+/*ARGSUSED*/
static int
pts_detach(dev_info_t *devi, ddi_detach_cmd_t cmd)
{
if (cmd != DDI_DETACH)
return (DDI_FAILURE);
- return (ptms_destroy_pts_nodes(devi));
+ /*
+ * For now, pts cannot be detached.
+ */
+ return (DDI_FAILURE);
}
/*ARGSUSED*/