DscSetSystemPriority

Universal Driver Documentation
Sets the system priority for the interrupt processing thread.

Table of contents

Function Definition

BYTE dscSetSystemPriority(DWORD priority)

Function Parameters

NameDescription
priorityThe system specific priority to use.

Return Value

Error code or 0.

System Priority on Linux and QNX

A thread is created by the driver in user mode which communicates with the interrupt handling functions. This thread is responsible for copying sample data into the user buffer. It also is responsible for calling the user provided user interrupt function. By default, the driver sets the highest priority available for this thread so that these tasks complete with a minimum of latency. The functions pthread_set_schedpolicy() and pthread_set_schedparam() are used to set this priority. The user can set a lower priority to this thread using dscSetSystemPriority(). See the pthreads documentation for scheduling for information on what priority numbers are available.


This page was last modified 15:06, 12 Feb 2004.
Copyright (c) 2004 Diamond Systems. All Rights Reserved.