int driver_create_file(struct device_driver *drv, struct driver_attribute *attr)
{
  int error;
  if (get_driver(drv)) {
    error = sysfs_create_file(&drv->kobj, &attr->attr);
    put_driver(drv);
  } else
    error = -EINVAL;
  return error;
}