io-sock

QNX SDP8.0Utilities ReferenceUtilities

Networking manager

Syntax:

io-sock [-d driver [driver_options]]...
        [-m module [module_options]]...
        [-o io-sock_option[,io-sock_option...]]

Runs on:

QNX OS

Options:

-d driver [driver_options]
Start the specified devs-* driver:
  • You can specify driver without the devs- prefix or the .so extension. For example, to start the devs-em.so driver, specify -d em.
  • If you want to load a specific version of a driver, specify the full path of the module (e.g., /lib/dll/devs-em.so).
Use commas with no spaces to specify multiple driver options. For valid options, see the driver documentation.
-m module [module_options]
Start the specified mods-* driver (a FreeBSD-compatible module):
  • You can specify module without the mods- prefix or the .so extension. For example, to start the mods-fdt.so module, specify -m fdt.
  • If you want to load a specific version of a module, specify the full path of the module (e.g., /lib/dll/mods-fdt.so).
Use commas with no spaces to specify multiple module options. For valid options, see the module documentation.
-o opt[,opt...]
The opt variable can be any of the following:
prefix
The path to prepend to the default stack location (/dev/socket). This is useful when you want to run multiple stacks. You can use the SOCK environment variable to specify which stack the client should use. For example, if you specify -o prefix=/alt, set SOCK to /alt.
config
The path to a file that contains tunable values. For more information, go to Configuration file.
bootverbose
Enable verbose boot message logging.
foreground
Stop io-sock from becoming a daemon. Valid only with the diagnostic version of io-sock (io-sock-diag). All logs are still sent to slogger2. For more information, see Running io-sock with diagnostic features in the High-Performance Networking Stack User's Guide.

Description:

The io-sock utility is the QNX OS network manager. For more information, see Starting io-sock and Driver Management in the High-Performance Networking Stack User's Guide.

Configuration file

For the file specified by config:
  • Specify values in the file using the format value_name="value".
  • The file can contain blank lines and comment lines (starting with #).
  • Do not include extra white space in lines that set values.
For descriptions of the values that you can set via this file, in the sysctl entry, go to the Tunables section.

For example:

# This file can only contain:
# Comment lines beginning with '#'
# Blank lines
# Tunable sysctl with values in '"'

# Example of setting priorities
qnx.ist_prio="11"
qnx.taskq_prio="12"
qnx.timer_prio="13"

# Example of setting the I/O privilege
qnx.iolevel="2"

The command line that starts io-sock and the values read from the configuration file are written to the system logger (slog2), which allows you to obtain the configuration file's location and the values that were present in the file. For example:

Jan 07 09:30:13.095          io_sock.495628                      0  -----ONLINE-----
Jan 07 09:30:13.095          io_sock.495628      main_buffer*    1  io-sock -o config=/etc/io-sock.cfg
Jan 07 09:30:13.095          io_sock.495628      main_buffer     1  io-sock fullpath: /sbin/io-sock
Jan 07 09:30:13.095          io_sock.495628      main_buffer     1  io-sock BuildID ee1dea5e444d7d8c1db9a729ec18a2bc
Jan 07 09:30:13.095          io_sock.495628      main_buffer     1  qnx.ist_prio="11"
Jan 07 09:30:13.095          io_sock.495628      main_buffer     1  qnx.taskq_prio="12"
Jan 07 09:30:13.095          io_sock.495628      main_buffer     1  qnx.timer_prio="13"
Jan 07 09:30:13.095          io_sock.495628      main_buffer     1  qnx.iolevel="2"
Jan 07 09:30:13.097          io_sock.495628      main_buffer     1  Copyright (c) 1992-2021 The FreeBSD Project.
Page updated: