1ddi-forceattach(9P)      Kernel Properties for Drivers     ddi-forceattach(9P)
2
3
4

NAME

6       ddi-forceattach,  ddi-no-autodetach  -  properties  controlling  driver
7       attach/detach behavior
8

DESCRIPTION

10       Solaris device drivers are attached by  devfsadm(1M) and by the  kernel
11       in  response  to  open(2)  requests from applications. Drivers not cur‐
12       rently in use can be detached when the system experiences memory  pres‐
13       sure.  The ddi-forceattach and ddi-no-autodetach properties can be used
14       to customize driver attach/detach behavior.
15
16
17       The ddi-forceattach is an integer property, to be set globally by means
18       of  the  driver.conf(4)  file.  Drivers with this property set to 1 are
19       loaded and attached to all possible instances  during  system  startup.
20       The driver will not be auto-detached due to system memory pressure.
21
22
23       The  ddi-no-autodetach  is  an  integer  property to be set globally by
24       means of the driver.conf(4) file or created dynamically by  the  driver
25       on  a per-instance basis with  ddi_prop_update_int(9F). When this prop‐
26       erty is set to 1, the kernel will not auto-detach driver due to  system
27       memory pressure.
28
29
30       Note  that  ddi-forceattach  implies  ddi-no-autodetach. Setting either
31       property to a non-integer value or an integer value not equal to 1 pro‐
32       duces undefined results. These properties do not prevent driver detach‐
33       ing in response to reconfiguration requests, such as executing commands
34       cfgadm(1M), modunload(1M), rem_drv(1M), and update_drv(1M).
35

SEE ALSO

37       driver.conf(4)
38
39
40       Writing Device Drivers
41
42
43
44SunOS 5.11                        18 May 2001              ddi-forceattach(9P)
Impressum