Lines Matching defs:handle
99 dladm_open(dladm_handle_t *handle)
103 if (handle == NULL)
111 * open the door when the dladm handle is opened because the
117 if ((*handle = malloc(sizeof (struct dladm_handle))) == NULL) {
122 (*handle)->dld_fd = dld_fd;
123 (*handle)->door_fd = -1;
129 dladm_close(dladm_handle_t handle)
131 if (handle != NULL) {
132 (void) close(handle->dld_fd);
133 if (handle->door_fd != -1)
134 (void) close(handle->door_fd);
135 free(handle);
140 dladm_dld_fd(dladm_handle_t handle)
142 return (handle->dld_fd);
146 * If DLMGMT_DOOR hasn't been opened in the handle yet, open it.
149 dladm_door_fd(dladm_handle_t handle, int *door_fd)
153 if (handle->door_fd == -1) {
156 handle->door_fd = fd;
158 *door_fd = handle->door_fd;
707 i_dladm_rw_db(dladm_handle_t handle, const char *db_file, mode_t db_perms,
763 status = (*process_db)(handle, arg, fp, nfp);