resource_seed

Updated: April 19, 2023

Create and seed the system resource database

Syntax:

resource_seed [options]

Runs on:

QNX Neutrino

Options:

Note: For all of the following options, the subclass name is optional. In addition, the string you specify for the subclass name can't begin with a digit.
mem=[subclass]start,end
The starting and ending addresses for memory.
irq=[subclass]start,end
The starting and ending IRQ vectors.
iport=[subclass]start,end
The starting and ending I/O port addresses.
dma=[subclass]start,end
The starting and ending addresses for DMA memory.
pcimem=[subclass]start,end
The starting and ending PCI memory addresses.

Description

When this utility is run, it creates and seeds a system resource database via the rsrcdbmgr_create() call. After calling this utility, applications and drivers can:
  • query the system resource database via the rsrcdbmgr_query() call
  • reserve system resources for a process via the rsrcdbmgr_attach() call
  • return system resources via the rsrcdbmgr_detach() call
For more information about the rsrcdbmgr_create(), rsrcdbmgr_query(), rsrcdbmgr_attach(), and rsrcdbmgr_detach() functions, see the QNX Neutrino C Library Reference.

When you are running this utility in a bootscript, ensure that you call resource_seed before starting other applications and drivers that need to reserve resources from the system resource database.

For example, if you have 32 DMA channels, you can use the dma option to seed the 32 DMA channels. Each application or driver that you start after you call resource_seed can call rsrcdbmgr_attach() to reserve a unique DMA.

Example:

Set the DMA memory addresss range. After this call, applications and drivers that you start can reserve system resources via the rsrcdbmgr_attach() call.
resource_seed dma=0,63