Lines Matching defs:link
838 struct nvmet_subsys_link *link, *p;
842 pr_err("can only link subsystems into the subsystems dir.!\n");
846 link = kmalloc(sizeof(*link), GFP_KERNEL);
847 if (!link)
849 link->subsys = subsys;
864 list_add_tail(&link->entry, &port->subsystems);
872 kfree(link);
917 struct nvmet_host_link *link, *p;
921 pr_err("can only link hosts into the allowed_hosts directory!\n");
926 link = kmalloc(sizeof(*link), GFP_KERNEL);
927 if (!link)
929 link->host = host;
943 list_add_tail(&link->entry, &subsys->hosts);
950 kfree(link);