-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LKML: access through char device and userspace utility/script #8
Comments
Most of the existing stuff could stay in debugfs and we could add /dev/thinkpad-bios. But wasn't the long term plan to somehow make wmi accessible from userspace ? (and most of what is in this driver would simply be moved to a small command line utility). |
Maybe I misunderstood this: "But wasn't the long term plan to somehow make wmi accessible from userspace ? (and most of what is in this driver would simply be moved to a small command line utility)." Isn't that what I said above? What exactly do you mean by "make wmi accessible from userspace"? |
I meant, in a more generic way that asking everybody to add custom character devices. Could you answer back to the thread and check with them if a character device would be ok ? (to be sure you don't work on something that would get rejected) |
A char device should be ok but the device should be /dev/wmi/thinkpad-bios. Look at Andy's and Darren's response:
That means we should remove debugfs as well as all the settings stuff from sysfs and only keep the WMI methods. Maybe debugfs could be kept for... well... debugging. I don't know. (AFAIK no other wmi driver has this) |
👍 |
IMHO the driver should only have the minimal needed set of functionality.
Someone at LKML suggested having a char device (e.g. /dev/thinkpad-bios).
We could implement this, remove any additional stuff from the driver and have a user space utility to control /dev/thinkpad-bios.
Opinions?
The text was updated successfully, but these errors were encountered: