diff options
author | Michael Brown <mcb30@ipxe.org> | 2021-03-02 23:37:41 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2021-03-02 23:59:30 +0000 |
commit | 5c8a9905ce3b04a4317d356d5481552fd17b63cb (patch) | |
tree | 5b9c13b219632bb6171fe6acc5dcfd505ae1c27d /src/include/ipxe/linux_sysfs.h | |
parent | 976839ae4c01530a6a931be7b2386a3abee328b9 (diff) | |
download | ipxe-5c8a9905ce3b04a4317d356d5481552fd17b63cb.tar.gz |
[linux] Add a generic function for reading files from sysfs
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/linux_sysfs.h')
-rw-r--r-- | src/include/ipxe/linux_sysfs.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/include/ipxe/linux_sysfs.h b/src/include/ipxe/linux_sysfs.h new file mode 100644 index 000000000..d97b649c0 --- /dev/null +++ b/src/include/ipxe/linux_sysfs.h @@ -0,0 +1,16 @@ +#ifndef _IPXE_LINUX_SYSFS_H +#define _IPXE_LINUX_SYSFS_H + +/** @file + * + * Linux sysfs files + * + */ + +FILE_LICENCE ( GPL2_OR_LATER ); + +#include <ipxe/uaccess.h> + +extern int linux_sysfs_read ( const char *filename, userptr_t *data ); + +#endif /* _IPXE_LINUX_SYSFS_H */ |