Lines Matching defs:tag
66 char *tag;
177 return sysfs_emit(buf, "%s\n", fs->tag);
180 static struct kobj_attribute virtio_fs_tag_attr = __ATTR_RO(tag);
276 /* Add a new instance to the list or return -EEXIST if tag name exists*/
286 if (strcmp(fs->tag, fs2->tag) == 0) {
320 /* Return the virtio_fs with a given tag, or NULL */
321 static struct virtio_fs *virtio_fs_find_instance(const char *tag)
328 if (strcmp(fs->tag, tag) == 0) {
357 /* Read filesystem name from virtio config into fs->tag (must kfree()). */
360 char tag_buf[sizeof_field(struct virtio_fs_config, tag)];
364 virtio_cread_bytes(vdev, offsetof(struct virtio_fs_config, tag),
368 return -EINVAL; /* empty tag */
373 fs->tag = devm_kmalloc(&vdev->dev, len + 1, GFP_KERNEL);
374 if (!fs->tag)
376 memcpy(fs->tag, tag_buf, len);
377 fs->tag[len] = '\0';
381 * "tag" attr and uevent TAG= properties. Forbid them.
383 if (strchr(fs->tag, '\n')) {
384 dev_dbg(&vdev->dev, "refusing virtiofs tag with newline character\n");
1432 pr_info("virtio-fs: tag <%s> not found\n", fs->tag);
1549 pr_info("virtio-fs: tag <%s> not found\n", fsc->source);
1637 add_uevent_var(env, "TAG=%s", fs->tag);