Lines Matching defs:type

75 	{ SURI_PROP_RO_URI_TYPE,	"uri-type",	"URI type" },
317 * that all create properties are of int64_t type and are set via
885 * Allocate a URI type specific structure and attach it to the suri object
925 * We are supposed to have a valid URI type here. It is an
935 /* Call the suri type specific parse function. */
976 suri_name_to_type(const char *type)
978 if (strcmp(type, NAME_SURI_TYPE_FILE) == 0)
981 if (strcmp(type, NAME_SURI_TYPE_LU) == 0)
983 if (strcmp(type, NAME_SURI_TYPE_ISCSI) == 0)
985 if (strcmp(type, NAME_SURI_TYPE_DEV) == 0)
1027 * Query function about the current type of a suri object for a given handle.
1054 * init the handle so that we can call the type specific lookup-uri
1129 * Configure the suri object and use a URI type specific map function. Return
1227 * related to a URI type.
1281 * Lookup URIs of a specific type for a given device. This function can return
1292 * been found for the URI type but no unexpected error has been hit. Caller can
1304 suri_lookup_uri(suri_type_t type, const char *mdev, suri_handle_t **pph)
1313 assert(SURI_VALID_TYPE(type));
1314 assert(type != SURI_TYPE_FILE || suri_experimental_enabled());
1321 sh->sh_uri_type = type;
1333 * type. We need this so that we can run the specific lookup-uri
1334 * function for a given URI type.
1337 suri_err_set_action(sh, format, suri_type_to_name(type), mdev);
1344 * an error and run the type specific function.
1350 * how URI type specific functions are supposed to behave.
1354 suri_err_set_action(sh, format, suri_type_to_name(type), mdev);
1369 * wrapper built around it. That is why it does not have its slot in per-type
1394 suri_type_t type;
1406 * First, we will do common checks not related to a URI type, such as
1419 /* We know the first valid URI type is right after SURI_TYPE_INVALID. */
1421 for (type = SURI_TYPE_INVALID + 1; type < SURI_TYPE_MAX; ++type) {
1424 if (type == SURI_TYPE_FILE && !suri_experimental_enabled()) {
1425 /* Silently skip this type if not enabled. */
1428 ret = suri_lookup_uri(type, mdev, (suri_handle_t **)&tpsh);
1508 * not support object creation the type specific fuctions are supposed
1520 * Destroy a storage object backing up a URI. Invoke a URI type specific routine
1521 * if the type supports object destroy. Return ESURI_OK on success and a
1535 * URI type does not support object creation the type specific fuctions
1552 * Return B_TRUE if a property is valid for a given suri object type.
1583 * given type, we also just return B_FALSE.
1793 /* Allocates URI type specific data, sets an operation structure. */
1936 SURIGTEXT("Operation not supported for given URI type"),
1949 SURIGTEXT("Operation not supported for given URI type"),