diff options
author | Karel Zak | 2014-08-01 12:08:44 +0200 |
---|---|---|
committer | Karel Zak | 2014-08-01 12:08:44 +0200 |
commit | 6c987ca9d7ce31544e55541c680d11ac9b47b22f (patch) | |
tree | 1edb9b11141f28b4688428b06d1721b93f36abaa /include/sysfs.h | |
parent | Merge branch 'travis' of git://github.com/kerolasa/lelux-utiliteetit (diff) | |
download | kernel-qcow2-util-linux-6c987ca9d7ce31544e55541c680d11ac9b47b22f.tar.gz kernel-qcow2-util-linux-6c987ca9d7ce31544e55541c680d11ac9b47b22f.tar.xz kernel-qcow2-util-linux-6c987ca9d7ce31544e55541c680d11ac9b47b22f.zip |
lib/sysfs: allow to write to sysfs attributes
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/sysfs.h')
-rw-r--r-- | include/sysfs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sysfs.h b/include/sysfs.h index 85a8910c6..3ff20cb27 100644 --- a/include/sysfs.h +++ b/include/sysfs.h @@ -58,6 +58,9 @@ extern int sysfs_read_s64(struct sysfs_cxt *cxt, const char *attr, int64_t *res) extern int sysfs_read_u64(struct sysfs_cxt *cxt, const char *attr, uint64_t *res); extern int sysfs_read_int(struct sysfs_cxt *cxt, const char *attr, int *res); +extern int sysfs_write_string(struct sysfs_cxt *cxt, const char *attr, const char *str); +extern int sysfs_write_u64(struct sysfs_cxt *cxt, const char *attr, uint64_t num); + extern char *sysfs_get_devname(struct sysfs_cxt *cxt, char *buf, size_t bufsiz); extern char *sysfs_strdup(struct sysfs_cxt *cxt, const char *attr); |