/* Now all the various file operations that we export.  */
static ssize_t cpustate_read(struct file *file, char *buf, size_t count, loff_t *ppos)
/* Now all the various file operations that we export.  */
static ssize_t cpustate_read(struct file *file, char *buf, size_t count, loff_t *ppos)
{
	unsigned char data;
	if (count < 0)
		return -EFAULT;
	if (count == 0)
		return 0;
	data = cpustate_get_state();
	if (copy_to_user(buf, &data, sizeof(unsigned char)))
		return -EFAULT;
	return sizeof(unsigned char);
}