Displaying 1 result from an estimated 1 matches for "attr_fd".
Did you mean:
attr_1
2019 Jan 20
0
[klibc:master] resume: Write resume_offset attribute
...e557b05..03e596a 100644
--- a/usr/kinit/resume/resumelib.c
+++ b/usr/kinit/resume/resumelib.c
@@ -44,8 +44,8 @@ int do_resume(int argc, char *argv[])
int resume(const char *resume_file, unsigned long long resume_offset)
{
dev_t resume_device;
- int powerfd = -1;
- char device_string[64];
+ int attr_fd = -1;
+ char attr_value[64];
int len;
resume_device = name_to_dev_t(resume_file);
@@ -55,30 +55,50 @@ int resume(const char *resume_file, unsigned long long resume_offset)
goto failure;
}
- if ((powerfd = open("/sys/power/resume", O_WRONLY)) < 0)
- goto fail_r;
+ if ((att...