Hello guys,
i am new to linux, i am after implementing a simple system call on the linux kernel that prints to the syslog via printk,
i would like to be able to extend this application , so i can details on the battery percentage of my laptop
or check the speed of the hard drive in the computer, could any of you give me a hand on where i would get the code that would help me access this type of information within my kernel,
(i have no idea how i found printk, and i have no idea where i could get futher information on printk)
also if guys could provide a simple but usefull system call that i could implement myself that would be great