Lines Matching refs:link
140 static char *follow_link(char *link) in follow_link() argument
151 n = hostfs_do_readlink(link, name, PATH_MAX); in follow_link()
162 end = strrchr(link, '/'); in follow_link()
167 len = strlen(link) + strlen(name) + 1; in follow_link()
175 sprintf(resolved, "%s%s", link, name); in follow_link()
177 kfree(link); in follow_link()
882 .link = hostfs_link,
895 char *link = __getname(); in hostfs_follow_link() local
896 if (link) { in hostfs_follow_link()
900 err = hostfs_do_readlink(path, link, PATH_MAX); in hostfs_follow_link()
906 __putname(link); in hostfs_follow_link()
907 link = ERR_PTR(err); in hostfs_follow_link()
910 link = ERR_PTR(-ENOMEM); in hostfs_follow_link()
913 nd_set_link(nd, link); in hostfs_follow_link()