6 #include <linux/module.h>
7 #include <linux/kernel.h>
14 #define _COMPONENT ACPI_SYSTEM_COMPONENT
18 static struct dentry *cm_dentry;
22 static ssize_t cm_write(
struct file *
file,
const char __user * user_buf,
23 size_t count, loff_t *ppos)
27 static u32 uncopied_bytes;
39 uncopied_bytes = max_size =
table.length;
48 if ((*ppos > max_size) ||
49 (*ppos + count > max_size) ||
50 (*ppos + count < count) ||
51 (count > uncopied_bytes))
60 uncopied_bytes -=
count;
63 if (!uncopied_bytes) {
80 static int __init acpi_custom_method_init(
void)
87 if (cm_dentry ==
NULL)
93 static void __exit acpi_custom_method_exit(
void)