cm_addval(D3) cm_addval(D3)
NAME
cm_addval - add an entry to the resource manager database
SYNOPSIS
#include <sys/confmgr.h>
#include <sys/ddi.h>
int cm_addval(cm_args_t *args);
Arguments
args Structure containing request arguments.
DESCRIPTION
cm_addval is used to append a value to the specified (key,
param) pair in the resource manager database.
Return Values
cm_addval returns 0 for success. The following errnos are
returned for failure:
EINVAL if args is NULL, cm_key is invalid, cm_vallen is zero,
cm_param is NULL, or cm_param specifies a read-only
parameter.
USAGE
The cm_key and cm_param elements of the args structure should
be set to select the (key, param) pair to which a value is to
be appended. The cm_val element of args should be set to
point to the value and cm_len should be set to the length (in
bytes) of cm_val.
cm_addval does not replace existing values of the (key, param)
pair, it appends to the existing list of values, if any. If
you want to replace an existing value, first call cm_delval to
delete the existing values.
Level
Initialization or Base.
Synchronization Constraints
May sleep.
Driver-defined basic locks and read/write locks may not be
held across calls to this function. Driver-defined sleep
locks may be held across calls to this function.
Copyright 1994 Novell, Inc. Page 1
cm_addval(D3) cm_addval(D3)
REFERENCES
cm_args(D4), cm_params(D5), errnos(D5)
NOTICES
Portability
All processors
Applicability
ddi: 6, 6mp, 7, 7mp
Copyright 1994 Novell, Inc. Page 2