To load a STREAMS module at kernel, first become root:
system% su Password: system# |
To determine whether you are running a 32-bit Solaris or 64-bit Solaris system, use the isainfo(1) utility as follows:
system# isainfo -v 64-bit sparcv9 applications 32-bit sparc applications system# |
If the command returns this information, you are running the 64-bit Solaris system. If you are running the 32-bit Solaris system, the utility shows the following:
system# isainfo -v 32-bit sparc applications system# |
Use modinfo(1M) to be certain that your system has not already loaded the STREAMS module:
system# modinfo | grep eucu8modulename |
If the STREAMS module, such as eucu8, is already installed, the output will look as follows:
system# modinfo | grep eucu8 89 ff798000 4b13 18 1 eucu8 (eucu8 module) system# |
If the module is already installed, you don't need to load it. However, if the module has not yet been loaded, use modload(1M)as follows:
system# modload /usr/kernel/strmod/eucu8modulename |
This loads the 32-bit eucu8 STREAMS module at the kernel, so you can push it onto a Stream. If you are running the 64-bit Solaris product, use modload(1M) as follows:
system# modload /usr/kernel/strmod/sparcv9/eucu8 |
The STREAMS module is installed at the kernel, and you can now push it onto a Stream.
To unload a module from the kernel, use modunload(1M), as shown below. In this example, the eucu8 module is being unloaded.
system# modinfo | grep eucu8 89 ff798000 4b13 18 1 eucu8 (eucu8 module) system# modunload -i 89 |