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