aboutsummaryrefslogtreecommitdiffstats
path: root/init/devices.h
diff options
context:
space:
mode:
authorBrian Swetland <swetland@google.com>2010-10-26 15:09:43 -0700
committerBrian Swetland <swetland@google.com>2010-10-26 15:37:06 -0700
commitbc57d4ce925a62f14c28c55e0ff28af1114f12be (patch)
treead1c32d5e681212727b3492f6b594a8e5f139d3a /init/devices.h
parent5988ea726e91fbdc69485b729ea2f532fedfa1d6 (diff)
downloadsystem_core-bc57d4ce925a62f14c28c55e0ff28af1114f12be.tar.gz
system_core-bc57d4ce925a62f14c28c55e0ff28af1114f12be.tar.bz2
system_core-bc57d4ce925a62f14c28c55e0ff28af1114f12be.zip
init: support owner/permission setting for sysfs attributes of devices
This should be much nicer than peppering init.rc with chown/chmod directives. Also, remove some dead code and obsolete comments. Change-Id: I10895f10a9cf2f1226c8d12976cd3db3743da9ec
Diffstat (limited to 'init/devices.h')
-rw-r--r--init/devices.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/init/devices.h b/init/devices.h
index 8593a1b8..a84fa582 100644
--- a/init/devices.h
+++ b/init/devices.h
@@ -21,7 +21,8 @@
extern void handle_device_fd();
extern void device_init(void);
-extern int add_dev_perms(const char *name, mode_t perm, unsigned int uid,
+extern int add_dev_perms(const char *name, const char *attr,
+ mode_t perm, unsigned int uid,
unsigned int gid, unsigned short prefix);
int get_device_fd();
#endif /* _INIT_DEVICES_H */