Lines Matching defs:handle

54 dladm_door_call(dladm_handle_t handle, void *arg, size_t asize, void *rbuf,
71 if ((status = dladm_door_fd(handle, &door_fd)) != DLADM_STATUS_OK)
79 (void) close(handle->door_fd);
80 handle->door_fd = -1;
109 dladm_create_datalink_id(dladm_handle_t handle, const char *link,
135 if ((status = dladm_door_call(handle, &createid, sizeof (createid),
146 dladm_destroy_datalink_id(dladm_handle_t handle, datalink_id_t linkid,
161 return (dladm_door_call(handle, &destroyid, sizeof (destroyid),
169 dladm_remap_datalink_id(dladm_handle_t handle, datalink_id_t linkid,
180 return (dladm_door_call(handle, &remapid, sizeof (remapid),
188 dladm_up_datalink_id(dladm_handle_t handle, datalink_id_t linkid)
197 return (dladm_door_call(handle, &upid, sizeof (upid), &retval, &sz));
201 * Create a new link with the given name. Return the new link's handle
204 dladm_create_conf(dladm_handle_t handle, const char *link, datalink_id_t linkid,
222 if ((status = dladm_door_call(handle, &createconf, sizeof (createconf),
236 i_dladm_phys_status(dladm_handle_t handle, datalink_id_t linkid,
244 status = dladm_phys_info(handle, linkid, &dpa, DLADM_OPT_ACTIVE);
254 if ((status = dladm_destroy_datalink_id(handle, linkid,
258 (void) dladm_set_linkprop(handle, linkid, NULL, NULL, 0,
273 dladm_handle_t handle, void *argp, datalink_class_t class,
296 if ((status = dladm_door_call(handle, &getnext,
315 if (i_dladm_phys_status(handle, linkid,
324 if (fn(handle, linkid, argp) == DLADM_WALK_TERMINATE)
332 * Get a handle of a copy of the link configuration (kept in the daemon)
336 dladm_open_conf(dladm_handle_t handle, datalink_id_t linkid,
351 if ((status = dladm_door_call(handle, &openconf,
361 * Get the handle of a local snapshot of the link configuration. Note that
362 * any operations with this handle are read-only, i.e., one can not update
363 * the configuration with this handle.
366 dladm_getsnap_conf(dladm_handle_t handle, datalink_id_t linkid,
386 if ((status = dladm_door_call(handle, &snapshot, sizeof (snapshot),
412 dladm_write_conf(dladm_handle_t handle, dladm_conf_t conf)
427 return (dladm_door_call(handle, &writeconf, sizeof (writeconf),
439 dladm_get_conf_field(dladm_handle_t handle, dladm_conf_t conf, const char *attr,
472 if ((status = dladm_door_call(handle, &getattr,
491 dladm_getnext_conf_linkprop(dladm_handle_t handle, dladm_conf_t conf,
534 dladm_name2info(dladm_handle_t handle, const char *link, datalink_id_t *linkidp,
546 if ((status = dladm_door_call(handle, &getlinkid, sizeof (getlinkid),
558 status = i_dladm_phys_status(handle, linkid, &retval.lr_flags);
582 dladm_datalink_id2info(dladm_handle_t handle, datalink_id_t linkid,
598 if ((status = dladm_door_call(handle, &getname, sizeof (getname),
612 status = i_dladm_phys_status(handle, linkid, &retval.lr_flags);
636 dladm_set_conf_field(dladm_handle_t handle, dladm_conf_t conf, const char *attr,
665 return (dladm_door_call(handle, &setattr, sizeof (setattr),
673 dladm_unset_conf_field(dladm_handle_t handle, dladm_conf_t conf,
690 return (dladm_door_call(handle, &unsetattr, sizeof (unsetattr),
699 dladm_remove_conf(dladm_handle_t handle, datalink_id_t linkid)
708 return (dladm_door_call(handle, &removeconf, sizeof (removeconf),
716 dladm_destroy_conf(dladm_handle_t handle, dladm_conf_t conf)
731 (void) dladm_door_call(handle, &dconf, sizeof (dconf),
737 dladm_zone_boot(dladm_handle_t handle, zoneid_t zoneid)
745 return (dladm_door_call(handle, &zoneboot, sizeof (zoneboot),
750 dladm_zone_halt(dladm_handle_t handle, zoneid_t zoneid)
758 return (dladm_door_call(handle, &zonehalt, sizeof (zonehalt),