/* pdcspath_attr_store - Generic write function call wrapper. @kobj: The kobject to write info to. @attr: The attribute to be modified. @buf: The input buffer. @count: The size of the buffer.  */
static ssize_t pdcspath_attr_store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t count)
/* pdcspath_attr_store - Generic write function call wrapper. @kobj: The kobject to write info to. @attr: The attribute to be modified. @buf: The input buffer. @count: The size of the buffer.  */
static ssize_t pdcspath_attr_store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t count)
{
	struct pdcspath_entry *entry = to_pdcspath_entry(kobj);
	struct pdcspath_attribute *pdcs_attr = to_pdcspath_attribute(attr);
	ssize_t ret = 0;
	if (!capable(CAP_SYS_ADMIN))
		return -EACCES;
	if (pdcs_attr->store)
		ret = pdcs_attr->store(entry, buf, count);
	return ret;
}