dev->nls = netlink_kernel_create(NETLINK_W1, 1, NULL, THIS_MODULE); if (!dev->nls) { printk(KERN_ERR "Failed to create new netlink socket(%u) for w1 master %s.\n", NETLINK_NFLOG, dev->dev.bus_id); } 
dev_init_netlink(dev); 
static struct w1_master * w1_alloc_dev(u32 id, int slave_count, int slave_ttl,				       struct device_driver *driver,				       struct device *device){	struct w1_master *dev;	int err;	/*	 * We are in process context(kernel thread), so can sleep.	 */	dev = kmalloc(sizeof(struct w1_master) + sizeof(struct w1_bus_master), GFP_KERNEL);	if (!dev) {		printk(KERN_ERR			"Failed to allocate %zd bytes for new w1 device.\n",			sizeof(struct w1_master));		return NULL;	}	memset(dev, 0, sizeof(struct w1_master) + sizeof(struct w1_bus_master));	dev->bus_master = (struct w1_bus_master *)(dev + 1);	dev->owner		= THIS_MODULE;	dev->max_slave_count	= slave_count;	dev->slave_count	= 0;	dev->attempts		= 0;	dev->kpid		= -1;	dev->initialized	= 0;	dev->id			= id;	dev->slave_ttl		= slave_ttl;        dev->search_count	= -1; /* continual scan */	atomic_set(&dev->refcnt, 2);	INIT_LIST_HEAD(&dev->slist);	init_MUTEX(&dev->mutex);	init_completion(&dev->dev_released);	init_completion(&dev->dev_exited);	memcpy(&dev->dev, device, sizeof(struct device));	snprintf(dev->dev.bus_id, sizeof(dev->dev.bus_id),		  "w1_bus_master%u", dev->id);	snprintf(dev->name, sizeof(dev->name), "w1_bus_master%u", dev->id);	dev->driver = driver;	dev->groups = 1;	dev->seq = 1;	dev->nls = netlink_kernel_create(NETLINK_W1, 1, NULL, THIS_MODULE);	if (!dev->nls) {		printk(KERN_ERR "Failed to create new netlink socket(%u) for w1 master %s.\n",			NETLINK_NFLOG, dev->dev.bus_id);	}	err = device_register(&dev->dev);	if (err) {		printk(KERN_ERR "Failed to register master device. err=%d\n", err);		if (dev->nls && dev->nls->sk_socket)			sock_release(dev->nls->sk_socket);		memset(dev, 0, sizeof(struct w1_master));		kfree(dev);		dev = NULL;	}	return dev;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/2d8331792ea3f5ccfd147288afba148537337019/w1_int.c/clean/drivers/w1/w1_int.c