1pseudo(4)                        File Formats                        pseudo(4)
2
3
4

NAME

6       pseudo - configuration files for pseudo device drivers
7

DESCRIPTION

9       Pseudo  devices  are devices that are implemented entirely in software.
10       Drivers for pseudo devices must provide driver configuration  files  to
11       inform the system of each pseudo device that should be created.
12
13
14       Configuration  files for pseudo device drivers must identify the parent
15       driver explicitly as pseudo, and must create an integer property called
16       instance which is unique to this entry in the configuration file.
17
18
19       Each  entry in the configuration file creates a prototype devinfo node.
20       Each node is assigned an instance number which  is  determined  by  the
21       value  of  the  instance  property. This property is only applicable to
22       children of the pseudo parent, and is  required  since  pseudo  devices
23       have  no  hardware address from which to determine the instance number.
24       See driver.conf(4) for further details of configuration file syntax.
25

EXAMPLES

27       Example 1 A sample configuration file.
28
29
30       Here is a configuration file called ramdisk.conf for  a  pseudo  device
31       driver  that  implements a RAM disk. This file creates two nodes called
32       "ramdisk". The first entry creates ramdisk node  instance  0,  and  the
33       second  creates ramdisk node, instance 1, with the additional disk-size
34       property set to 512.
35
36
37         #
38         # Copyright (c) 1993, by Sun Microsystems, Inc.
39         #
40         #ident  "@(#)ramdisk.conf       1.3     93/06/04 SMI"
41         name="ramdisk" parent="pseudo" instance=0;
42         name="ramdisk" parent="pseudo" instance=1 disk-size=512;
43
44
45

SEE ALSO

47       driver.conf(4), ddi_prop_op(9F)
48
49
50       Writing Device Drivers
51
52
53
54SunOS 5.11                        15 Jun 1993                        pseudo(4)
Impressum