static int sysfs_add_link(struct dentry * parent, char * name, struct kobject * target) 
static int sysfs_add_link(struct dentry * parent, const char * name, struct kobject * target) 
static int sysfs_add_link(struct dentry * parent, char * name, struct kobject * target){	struct sysfs_dirent * parent_sd = parent->d_fsdata;	struct sysfs_symlink * sl;	int error = 0;	error = -ENOMEM;	sl = kmalloc(sizeof(*sl), GFP_KERNEL);	if (!sl)		goto exit1;	sl->link_name = kmalloc(strlen(name) + 1, GFP_KERNEL);	if (!sl->link_name)		goto exit2;	strcpy(sl->link_name, name);	sl->target_kobj = kobject_get(target);	error = sysfs_make_dirent(parent_sd, NULL, sl, S_IFLNK|S_IRWXUGO,				SYSFS_KOBJ_LINK);	if (!error)		return 0;	kfree(sl->link_name);exit2:	kfree(sl);exit1:	return error;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/e3a15db2415579d5136b9ba9b52fe27c66da8780/symlink.c/clean/fs/sysfs/symlink.c