NeXTSTEPDRIVERKIT:Chapter4 3: Difference between revisions
Jump to navigation
Jump to search
Onionmixer (talk | contribs) (NeXTSTEP DRIVER KIT driverLoader 를 사용한 드라이버 로드 내용 추가) |
Onionmixer (talk | contribs) (형식수정) |
||
Line 3: | Line 3: | ||
==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): | 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):<BR> | ||
:'''/usr/etc/driverLoader''' ''option'' ['''v'''] [''instance''] | :'''/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. | Specifying '''v''' results in more verbose output from '''driverLoader'''. The ''instance'' argument can be used only with the '''d''' option, as described below.<BR> | ||
The ''option'' is one of the following: | The ''option'' is one of the following:<BR> | ||
* '''a''' | * '''a''' | ||
** Configure all devices. This option is used when '''driverLoader''' is run during system boot (by '''/etc/rc'''). | ** Configure all devices. This option is used when '''driverLoader''' is run during system boot (by '''/etc/rc''').<BR> | ||
* '''i''' | * '''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. | ** 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.<BR> | ||
* '''d'''=''deviceName'' | * '''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 '''Instance'''''n'''''.table''' file. For example, if you specify ''instance'' as 1, the driver is probed using the information in its '''Instance1.table''' file. | ** 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 '''Instance'''''n'''''.table''' file. For example, if you specify ''instance'' as 1, the driver is probed using the information in its '''Instance1.table''' file.<BR> | ||
Here's an example of using the '''d''' option: | Here's an example of using the '''d''' option:<BR> | ||
<syntaxhighlight lang="objc"> | <syntaxhighlight lang="objc"> | ||
Line 27: | Line 27: | ||
Here's an example of using the '''d''' option and specifying ''instance'': | Here's an example of using the '''d''' option and specifying ''instance'':<BR> | ||
<syntaxhighlight lang="objc"> | <syntaxhighlight lang="objc"> | ||
Line 34: | Line 34: | ||
For another example of using '''driverLoader''', see '''/NextLibrary/Documentation/NextDev/Examples/DriverKit'''. | For another example of using '''driverLoader''', see '''/NextLibrary/Documentation/NextDev/Examples/DriverKit'''.<BR> |
Revision as of 12:01, 11 October 2017
- 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).
- 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.
- 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.
- 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.