/* The value of the timer field correponds to a number of seconds in powers of 2.  */
static ssize_t pdcs_timer_read(struct kobject *kobj, struct kobj_attribute *attr, char *buf)
/* The value of the timer field correponds to a number of seconds in powers of 2.  */
static ssize_t pdcs_timer_read(struct kobject *kobj, struct kobj_attribute *attr, char *buf)
{
	char *out = buf;
	struct pdcspath_entry *pathentry;
	if (!buf)
		return -EINVAL;
	pathentry = &pdcspath_entry_primary;
	read_lock(&pathentry->rw_lock);
	out += sprintf(out, "%u\n", (pathentry->devpath.flags & PF_TIMER) ?
				(1 << (pathentry->devpath.flags & PF_TIMER)) : 0);
	read_unlock(&pathentry->rw_lock);
	return out - buf;
}