Create sysfs attribute file for device.
int device_create_file(struct device * dev, const struct device_attribute * attr);
dev
device.
attr
device attribute descriptor.