blob: 89cc53e24c04738d33d18f3027016b42ab935899 (plain
Nice job with debugfs, that is a handy thing to remember when wanting to
print out some debugging information. Never use /proc/ that is only for
processes, use debugfs instead.
Along with debugfs, sysfs is a common place to put information that
needs to move from the user to the kernel. So let us focus on sysfs for
The task this time:
- Take the code you wrote in task 08, and move it to sysfs. Put the
"eudyptula" directory under the /sys/kernel/ location in sysfs.
- Provide some "proof" this works.
That's it! Simple, right? No, you are right, it's more complex, sysfs
is complicated. I'd recommend reading Documentation/kobject.txt as a
primer on how to use kobjects and sysfs.
Feel free to ask for hints and help with this one if you have questions
by sending in code to review if you get stuck, many people have dropped
out in the challenge at this point in time, so don't feel bad about
asking, we don't want to see you go away just because sysfs is so damn