Lines Matching defs:type
30 spdk_notify_type_register(const char *type)
34 if (!type) {
35 SPDK_ERRLOG("Invalid notification type %p\n", type);
37 } else if (!type[0] || strlen(type) >= SPDK_NOTIFY_MAX_NAME_SIZE) {
38 SPDK_ERRLOG("Notification type '%s' too short or too long\n", type);
44 if (strcmp(type, it->name) == 0) {
45 SPDK_NOTICELOG("Notification type '%s' already registered.\n", type);
55 snprintf(it->name, sizeof(it->name), "%s", type);
64 spdk_notify_type_get_name(const struct spdk_notify_type *type)
66 return type->name;
85 spdk_notify_send(const char *type, const char *ctx)
95 spdk_strcpy_pad(ev->type, type, sizeof(ev->type), '\0');