libds.c revision 2
98N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
98N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
705N/A#include <libsysevent.h>
98N/Astatic char vlds_device[] =
98N/A "/devices/virtual-devices@100/channel-devices@200/"
98N/Atypedef struct dslibentry {
691N/A char *dsl_service;
606N/A * service registration (ds_svc_reg/ds_clnt_reg), service unregistration
static dslibentry_t *
return (dsp);
return (NULL);
static dslibentry_t *
ds_new_dslibentry(void)
int newndslib;
return (dsp);
== NULL)
return (NULL);
return (dsp);
static uint_t
count++;
return (count);
static dslibentry_t *
return (dsp);
return (NULL);
static dslibentry_t *
return (dsp);
return (NULL);
return (orig_dsp);
return (NULL);
return (dsp);
char *subclass;
char *servicep;
&servicep) == 0 &&
&is_client) == 0) {
&dhdl) == 0 &&
dhdl);
&buflen) == 0) {
ds_init_sysev(void)
return (errno);
return (errno);
ds_init(void)
if (ds_fd >= 0)
return (errno);
return (errno);
return (errno);
ds_init_sysev() != 0) {
return (errno);
* registered or unregistered, rather than using the register/unregister
errno = 0;
if (ds_fd < 0) {
return (errno);
if (ds_fd < 0) {
return (errno);
if (dhdlp) {
if (ds_fd >= 0) {
if (ds_fd < 0) {
return (errno);
if (ds_fd < 0) {
return (errno);
if (msglen) {
if (ds_fd < 0) {
return (errno);
if (ds_fd < 0) {
return (errno);
if (dhdlp) {
if (ds_fd < 0) {
return (errno);
ds_fini(void)
if (ds_fd >= 0) {
if (ds_evchan) {
if (ndslib > 0) {
ndslib = 0;