Linux power managment for loadable kernel modules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

 

I have started the work on Linux power management, and want to hook my loadable kernel modules to power management core of kernel.

So, as a beginning point I have gone through the Linux Symposium section of Power management and gone through the code.

I am using kernel 2.6.23.17 at present.

 

Can you please confirm is the below method to use the device_suspend functionality from kernel correct?

I am using the TTY as an example here.

 

tty_class = class_create(THIS_MODULE, "tty");

struct device *dev= device_create(tty_class, NULL, MKDEV(TTYAUX_MAJOR, 0), "tty");

dev->class->suspend=my_suspend_method;

dev->class->resume =my_resume_method;

 

Is there any other way for doing that?

If you feel that this question is redundant, please let me know of the earlier post.

 

Thanks and regards,

Divneil

 

_______________________________________________
linux-pm mailing list
linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/linux-pm

[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux