Name

sysfs_chmod_file — update the modified mode value on an object attribute.

Synopsis

int sysfs_chmod_file (struct kobject * kobj,
 const struct attribute * attr,
 umode_t mode);
 

Arguments

struct kobject * kobj

object we're acting for.

const struct attribute * attr

attribute descriptor.

umode_t mode

file permissions.