/* Get the correct pointers for the kobject and the attribute we're dealing with, then call the store() method for the attribute, passing the buffer that we acquired in fill_write_buffer().  */
static int flush_write_buffer(struct dentry *dentry, struct sysfs_buffer *buffer, size_t count)
/* Get the correct pointers for the kobject and the attribute we're dealing with, then call the store() method for the attribute, passing the buffer that we acquired in fill_write_buffer().  */
static int flush_write_buffer(struct dentry *dentry, struct sysfs_buffer *buffer, size_t count)
{
	struct sysfs_dirent *attr_sd = dentry->d_fsdata;
	struct kobject *kobj = attr_sd->s_parent->s_dir.kobj;
	struct sysfs_ops * ops = buffer->ops;
	int rc;
	if (!sysfs_get_active_two(attr_sd))
		return -ENODEV;
	rc = ops->store(kobj, attr_sd->s_attr.attr, buffer->page, count);
	sysfs_put_active_two(attr_sd);
	return rc;
}