Home
last modified time | relevance | path

Searched refs:ndmp_door_fildes (Results 1 – 2 of 2) sorted by relevance

/illumos-gate/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_door.c51 static int ndmp_door_fildes = -1; variable
70 if (ndmp_door_fildes != -1) { in ndmp_door_init()
77 if ((ndmp_door_fildes = door_create(ndmp_door_server, in ndmp_door_init()
89 (void) door_revoke(ndmp_door_fildes); in ndmp_door_init()
90 ndmp_door_fildes = -1; in ndmp_door_init()
98 if (fattach(ndmp_door_fildes, NDMP_DOOR_SVC) < 0) { in ndmp_door_init()
100 (void) door_revoke(ndmp_door_fildes); in ndmp_door_init()
101 ndmp_door_fildes = -1; in ndmp_door_init()
116 if (ndmp_door_fildes != -1) { in ndmp_door_fini()
118 (void) door_revoke(ndmp_door_fildes); in ndmp_door_fini()
[all …]
/illumos-gate/usr/src/lib/libndmp/common/
H A Dlibndmp.c49 static int ndmp_door_fildes = -1; variable
431 if ((ndmp_door_fildes == -1) && in ndmp_door_setup()
432 (ndmp_door_fildes = open(NDMP_DOOR_SVC, O_RDONLY)) < 0) { in ndmp_door_setup()
472 if (door_call(ndmp_door_fildes, &arg) < 0) { in ndmp_door_call()
475 (void) close(ndmp_door_fildes); in ndmp_door_call()
476 ndmp_door_fildes = -1; in ndmp_door_call()