static ssize_t hvcs_vterm_state_store(struct device *dev, const char *buf, 
static ssize_t hvcs_vterm_state_store(struct device *dev, struct device_attribute *attr, const char *buf, 
static ssize_t hvcs_vterm_state_store(struct device *dev, const char *buf,		size_t count){	struct vio_dev *viod = to_vio_dev(dev);	struct hvcs_struct *hvcsd = from_vio_dev(viod);	unsigned long flags;	/* writing a '0' to this sysfs entry will result in the disconnect. */	if (simple_strtol(buf, NULL, 0) != 0)		return -EINVAL;	spin_lock_irqsave(&hvcsd->lock, flags);	if (hvcsd->open_count > 0) {		spin_unlock_irqrestore(&hvcsd->lock, flags);		printk(KERN_INFO "HVCS: vterm state unchanged.  "				"The hvcs device node is still in use.\n");		return -EPERM;	}	if (hvcsd->connected == 0) {		spin_unlock_irqrestore(&hvcsd->lock, flags);		printk(KERN_INFO "HVCS: vterm state unchanged. The"				" vty-server is not connected to a vty.\n");		return -EPERM;	}	hvcs_partner_free(hvcsd);	printk(KERN_INFO "HVCS: Closed vty-server@%X and"			" partner vty@%X:%d connection.\n",			hvcsd->vdev->unit_address,			hvcsd->p_unit_address,			(uint32_t)hvcsd->p_partition_ID);	spin_unlock_irqrestore(&hvcsd->lock, flags);	return count;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/74880c063b06efd103c924abfe19d9d8fa4864c4/hvcs.c/clean/drivers/char/hvcs.c