We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
How to reproduce:
First add debug in acpi_proc_read:
static ssize_t acpi_proc_read( struct file *filp, char __user *buff, size_t count, loff_t *off ) { ssize_t ret; int len = strlen(result_buffer); #ifdef DEBUG printk(KERN_INFO "acpi_call_read: length %u, '%s'\n", len, result_buffer); #endif ...
Run:
echo '_SB.PCI0.LPC.EC.HKEY.BCTG 0x1' > /proc/acpi/call ; cat /proc/acpi/call 0x327lled
should return 0x327
dmsg return: [86483.844220] acpi_call: Calling _SB.PCI0.LPC.EC.HKEY.BCTG [86483.844768] acpi_call: Call successful: 0x327 [86483.848402] acpi_call_read: length 5, '0x327' [86483.848439] acpi_call_read: length 10, 'not called' [86483.848455] acpi_call_read: length 10, 'not called'
It shows acpi_proc_read is called 3 times.
How to fix: comment line in acpi_proc_read: strcpy(result_buffer, "not called");
I don't understand what happen.
The text was updated successfully, but these errors were encountered:
Approve. Hame same problem.
Sorry, something went wrong.
No branches or pull requests
How to reproduce:
First add debug in acpi_proc_read:
Run:
should return 0x327
dmsg return:
[86483.844220] acpi_call: Calling _SB.PCI0.LPC.EC.HKEY.BCTG
[86483.844768] acpi_call: Call successful: 0x327
[86483.848402] acpi_call_read: length 5, '0x327'
[86483.848439] acpi_call_read: length 10, 'not called'
[86483.848455] acpi_call_read: length 10, 'not called'
It shows acpi_proc_read is called 3 times.
How to fix:
comment line in acpi_proc_read: strcpy(result_buffer, "not called");
I don't understand what happen.
The text was updated successfully, but these errors were encountered: