Lines Matching defs:lsp

109  * entry's contents (buf) and its linked-list representation (listp). lsp
115 * contain only the property information in lsp.
119 process_prop_set(dladm_handle_t handle, prop_db_state_t *lsp, char *buf,
127 if (lsp->ls_propname == NULL) {
136 if (strcmp(lip->li_name, lsp->ls_propname) == 0)
156 nlip->li_name = lsp->ls_propname;
177 for (i = 0; i < *lsp->ls_valcntp; i++) {
182 (*lvpp)->lv_name = lsp->ls_propval[i];
188 generate_prop_line(lsp->ls_name, buf, listp, statusp);
190 generate_prop_line(lsp->ls_name, buf, nlip, statusp);
208 * associated values are copied to the array lsp->ls_propval.
212 process_prop_get(dladm_handle_t handle, prop_db_state_t *lsp, char *buf,
223 if (strcmp(lip->li_name, lsp->ls_propname) == 0)
232 (void) strncpy(lsp->ls_propval[valcnt], lvp->lv_name,
235 if (++valcnt >= *lsp->ls_valcntp && lvp->lv_nextval != NULL) {
246 *lsp->ls_valcntp = valcnt;
253 * database. lsp->ls_name is not user-specified but instead is set to
258 process_prop_init(dladm_handle_t handle, prop_db_state_t *lsp, char *buf,
285 status = (*lsp->ls_initop)(handle, lsp->ls_name, lip->li_name,
394 process_prop_line(dladm_handle_t handle, prop_db_state_t *lsp, char *buf,
414 if (lsp->ls_name != NULL) {
422 llen = strlen(lsp->ls_name);
423 if (strncmp(str, lsp->ls_name, llen) != 0 ||
429 * and assign it to lsp->ls_name.
435 lsp->ls_name = str;
451 cont = (*lsp->ls_op)(handle, lsp, buf, lip, statusp);
454 lsp->ls_name = NULL;
460 lsp->ls_name = NULL;
472 prop_db_state_t *lsp = arg;
488 cont = process_prop_line(handle, lsp, buf, &status);
499 if (lsp->ls_op == process_prop_set) {
504 (void) (*lsp->ls_op)(handle, lsp, buf, NULL, &status);
509 if (lsp->ls_op == process_prop_get)