STREAMS-UX Programmer's Guide (February 2007)
STREAMS Utilities Supported by HP-UX
Appendix B
165
NAME
drv_getparm () – Get kernel information.
SYNOPSIS
#include <sys/stream.h>
int drv_getparm (unsigned long parm, unsigned long *value_p);
PARAMETERS
parm
A kernel parameter of: LBOLT, PPGRP, UPROCP, PPID, PSID, TIME, or UCRED.
value_p
A pointer to the address to put the result field into.
DESCRIPTION
Return the value of the parameter in parm.
RETURN VALUES
drv_getparm() returns 0 if the parm is recognized or -1 if not.
CONSTRAINTS
drv_getparm() can be called from thread or interrupt context. Spinlocks can be held across this call.