7 * with the License.
8 *
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
13 *
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 */
22 /*
23 * Copyright (c) 2000-2001 by Sun Microsystems, Inc.
24 * All rights reserved.
25 */
26
27 #pragma ident "%Z%%M% %I% %E% SMI"
28
29 #include <regex.h>
30 #include <devfsadm.h>
31 #include <stdio.h>
32 #include <strings.h>
33 #include <stdlib.h>
34 #include <limits.h>
35 #include <sys/fssnap_if.h>
36
37
38 static int fssnap(di_minor_t minor, di_node_t node);
39
40 static devfsadm_create_t fssnap_cbt[] = {
41 { "pseudo", "ddi_pseudo", SNAP_NAME,
42 TYPE_EXACT | DRV_EXACT, ILEVEL_0, fssnap,
43 },
44 };
45
46 DEVFSADM_CREATE_INIT_V0(fssnap_cbt);
47
48 /*
49 * For the master device:
50 * /dev/fssnapctl -> /devices/pseudo/fssnap@0:ctl
51 * For each other device
52 * /dev/fssnap/1 -> /devices/pseudo/fssnap@0:1
53 * /dev/rfssnap/1 -> /devices/pseudo/fssnap@0:1,raw
54 */
55 static int
|
7 * with the License.
8 *
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
13 *
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 */
22 /*
23 * Copyright (c) 2000-2001 by Sun Microsystems, Inc.
24 * All rights reserved.
25 */
26
27 #include <regex.h>
28 #include <devfsadm.h>
29 #include <stdio.h>
30 #include <strings.h>
31 #include <stdlib.h>
32 #include <limits.h>
33 #include <sys/fssnap_if.h>
34 #include <sys/mkdev.h>
35
36
37 static int fssnap(di_minor_t minor, di_node_t node);
38
39 static devfsadm_create_t fssnap_cbt[] = {
40 { "pseudo", "ddi_pseudo", SNAP_NAME,
41 TYPE_EXACT | DRV_EXACT, ILEVEL_0, fssnap,
42 },
43 };
44
45 DEVFSADM_CREATE_INIT_V0(fssnap_cbt);
46
47 /*
48 * For the master device:
49 * /dev/fssnapctl -> /devices/pseudo/fssnap@0:ctl
50 * For each other device
51 * /dev/fssnap/1 -> /devices/pseudo/fssnap@0:1
52 * /dev/rfssnap/1 -> /devices/pseudo/fssnap@0:1,raw
53 */
54 static int
|