/* More complex function where we determine which varible is being accessed by looking at the attribute for the "baz" and "bar" files.  */
static ssize_t b_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf)
/* More complex function where we determine which varible is being accessed by looking at the attribute for the "baz" and "bar" files.  */
static ssize_t b_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf)
{
	int var;
	if (strcmp(attr->attr.name, "baz") == 0)
		var = baz;
	else
		var = bar;
	return sprintf(buf, "%d\n", var);
}