And while you are learning about this topic -
Investigate this part of the system device tree:
Code:
[root@kindle driver]# ls -l /sys/devices/platform/mxc_rtc.0/
lrwxrwxrwx 1 root root 0 May 25 07:10 driver -> ../../../bus/platform/drivers/mxc_rtc
-r--r--r-- 1 root root 4096 Jun 2 14:56 modalias
drwxr-xr-x 2 root root 0 Jun 2 14:56 power
drwxr-xr-x 3 root root 0 May 25 07:10 rtc
-rw-rw-rw- 1 root root 4096 Jun 2 14:56 rtc_pmic_epoch_time
-rw-rw-rw- 1 root root 4096 Jun 2 14:56 rtc_saved_last_seconds
lrwxrwxrwx 1 root root 0 May 25 07:10 subsystem -> ../../../bus/platform
-rw-r--r-- 1 root root 4096 May 25 07:10 uevent
-rw-r--r-- 1 root root 4096 Jun 2 14:56 wakeup_enable
-rw-r--r-- 1 root root 4096 Jun 2 14:56 wakeup_from_halt
It at least has interesting names.
You may have to read some of the driver source code to find out about those.