Lines Matching refs:optd
337 opdes_t *optd; in proto_opt_lookup() local
339 for (optd = opt_arr; optd < &opt_arr[opt_arr_cnt]; in proto_opt_lookup()
340 optd++) { in proto_opt_lookup()
341 if (level == (uint_t)optd->opdes_level && in proto_opt_lookup()
342 name == (uint_t)optd->opdes_name) in proto_opt_lookup()
343 return (optd); in proto_opt_lookup()
360 opdes_t *optd; in proto_opt_check() local
363 optd = proto_opt_lookup(level, name, opt_arr, opt_arr_cnt); in proto_opt_check()
364 if (optd == NULL) in proto_opt_check()
372 if (!OA_WRITE_OR_EXECUTE(optd, cr)) { in proto_opt_check()
374 if (!(OA_MATCHED_PRIV(optd, cr)) && in proto_opt_check()
375 OA_WX_ANYPRIV(optd)) { in proto_opt_check()
393 if (!(optd->opdes_props & OP_VARLEN)) { in proto_opt_check()
395 if (len != optd->opdes_size) { in proto_opt_check()
401 if (!OA_RWX_ANYPRIV(optd)) in proto_opt_check()
412 if (!OA_READ_PERMISSION(optd, cr)) { in proto_opt_check()
414 if (!(OA_MATCHED_PRIV(optd, cr)) && in proto_opt_check()
415 OA_R_ANYPRIV(optd)) { in proto_opt_check()
427 *max_len = optd->opdes_size; in proto_opt_check()