Lines Matching refs:sl
51 struct sysfs_symlink * sl;
55 sl = kmalloc(sizeof(*sl), GFP_KERNEL);
56 if (!sl)
59 sl->link_name = kmalloc(strlen(name) + 1, GFP_KERNEL);
60 if (!sl->link_name)
63 strcpy(sl->link_name, name);
64 sl->target_kobj = kobject_get(target);
66 error = sysfs_make_dirent(parent_sd, NULL, sl, S_IFLNK|S_IRWXUGO,
72 kfree(sl->link_name);
74 kfree(sl);