Update the modified mode value on an object attribute.
int sysfs_chmod_file(struct kobject * kobj, const struct attribute * attr, umode_t mode);
kobj
object we're acting for.
attr
attribute descriptor.
mode
file permissions.