NeXTSTEPDRIVERKIT:Chapter4 3
Revision as of 11:58, 11 October 2017 by Onionmixer (talk | contribs) (NeXTSTEP DRIVER KIT driverLoader 를 사용한 드라이버 로드 내용 추가)
- Loading a Driver with driverLoader
driverLoader 를 사용한 드라이버 로드
You can load your driver into an already running system. The driverLoader command loads or configures a driver after startup time. You initiate the command as follows (as superuser):
- /usr/etc/driverLoader option [v] [instance]
Specifying v results in more verbose output from driverLoader. The instance argument can be used only with the d option, as described below.
The option is one of the following:
- a
- Configure all devices. This option is used when driverLoader is run during system boot (by /etc/rc).
- i
- Interactive mode. With this option, you can look at all active and boot drivers in the system configuration. Note that if you add a driver to the system, the driver isn't recognized as "active" until you reboot.
- d=deviceName
- Configure one device interactively. This is how you load drivers that aren't specified in the system configuration. This is usually used for testing purposes. You can specify instance to use a specific Instancen.table file. For example, if you specify instance as 1, the driver is probed using the information in its Instance1.table file.
Here's an example of using the d option:
# /usr/etc/driverLoader d=myDriver
Here's an example of using the d option and specifying instance:
# /usr/etc/driverLoader d=fooDriver 1
For another example of using driverLoader, see /NextLibrary/Documentation/NextDev/Examples/DriverKit.