DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
SVR5

drv_setparm(D3)


drv_setparm -- set kernel state information

Synopsis

   #include <sys/types.h>
   #include <sys/ddi.h>
   

int drv_setparm(ulong_t parm, ulong_t value);

Description

drv_setparm verifies that parm corresponds to a kernel parameter that may be modified. If the value of parm corresponds to a parameter that may not be modified, -1 is returned. Otherwise, the parameter is incremented by value.

Arguments


parm
The kernel parameter to be updated.

value
The value to be added to the parameter.

Return values

If the function is successful, 0 is returned. Otherwise, -1 is returned to indicate that parm specified an invalid parameter.

Usage

No checking is performed to determine the validity of value. It is the driver's responsibility to guarantee the correctness of value.

Valid values for parm are:


SYSCANC
Add value to the count of the number of characters received from a terminal device after the characters have been processed to remove special characters such as ``break'' or ``backspace''.

SYSMINT
Add value to the count of the number of modem interrupts received.

SYSOUTC
Add value to the count of the number of characters output to a terminal device.

SYSRAWC
Add value to the count of the number of characters received from a terminal device, before canonical processing has occurred.

SYSRINT
Add value to the count of the number of interrupts generated by data ready to be received from a terminal device.

SYSXINT
Add value to the count of the number of interrupts generated by data ready to be transmitted to a terminal device.

Context and synchronization

Non-blockable, interrupt, user, or blockable context.

Hardware applicability

All

Version applicability

ddi: 1, 2, 3, 4, 5, 5mp, 6, 6mp, 7, 7mp, 7.1, 7.1mp, 8, 8mp

Future directions

This interface is expected to be replaced or modified in a future release.

References

drv_getparm(D3)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005