Lines Matching defs:handle

127 dladm_set_secobj(dladm_handle_t handle, const char *obj_name,
157 if (ioctl(dladm_dld_fd(handle), DLDIOC_SECOBJ_SET, &secobj_set) < 0)
165 status = i_dladm_set_secobj_db(handle, obj_name, class,
172 dladm_get_secobj(dladm_handle_t handle, const char *obj_name,
186 return (i_dladm_get_secobj_db(handle, obj_name, classp,
195 if (ioctl(dladm_dld_fd(handle), DLDIOC_SECOBJ_GET, &secobj_get) < 0)
210 dladm_unset_secobj(dladm_handle_t handle, const char *obj_name, uint_t flags)
225 if (ioctl(dladm_dld_fd(handle), DLDIOC_SECOBJ_UNSET, &secobj_unset) < 0)
233 status = i_dladm_unset_secobj_db(handle, obj_name);
239 dladm_walk_secobj(dladm_handle_t handle, void *arg,
248 return (i_dladm_walk_secobj_db(handle, arg, func));
260 if (ioctl(dladm_dld_fd(handle), DLDIOC_SECOBJ_GET, secobj_getp) < 0) {
282 if (!func(handle, arg, objp->so_name))
323 process_secobj_set(dladm_handle_t handle, secobj_db_state_t *ssp, char *buf,
352 process_secobj_get(dladm_handle_t handle, secobj_db_state_t *ssp, char *buf,
367 process_secobj_unset(dladm_handle_t handle, secobj_db_state_t *ssp, char *buf,
379 process_secobj_walk(dladm_handle_t handle, secobj_db_state_t *ssp, char *buf,
400 process_secobj_init(dladm_handle_t handle, secobj_db_state_t *ssp, char *buf,
403 *statusp = dladm_set_secobj(handle, sip->si_name, *sip->si_classp,
420 process_secobj_line(dladm_handle_t handle, secobj_db_state_t *ssp, char *buf,
490 return ((*ssp->ss_op)(handle, ssp, buf, &sinfo, statusp));
501 process_secobj_db(dladm_handle_t handle, void *arg, FILE *fp, FILE *nfp)
519 cont = process_secobj_line(handle, ssp, buf, &status);
534 (void) (*ssp->ss_op)(handle, ssp, buf, NULL, &status);
546 #define SECOBJ_RW_DB(handle, statep, writeop) \
547 (i_dladm_rw_db(handle, "/etc/dladm/secobj.conf", \
552 i_dladm_set_secobj_db(dladm_handle_t handle, const char *obj_name,
564 return (SECOBJ_RW_DB(handle, &state, B_TRUE));
568 i_dladm_get_secobj_db(dladm_handle_t handle, const char *obj_name,
580 return (SECOBJ_RW_DB(handle, &state, B_FALSE));
584 i_dladm_unset_secobj_db(dladm_handle_t handle, const char *obj_name)
595 return (SECOBJ_RW_DB(handle, &state, B_TRUE));
599 i_dladm_walk_secobj_db(dladm_handle_t handle, void *arg,
614 status = SECOBJ_RW_DB(handle, &state, B_FALSE);
622 cont = func(handle, arg, fsnp->sn_name);
630 dladm_init_secobj(dladm_handle_t handle)
641 return (SECOBJ_RW_DB(handle, &state, B_FALSE));