October 2017
Intermediate to advanced
586 pages
14h 8m
English
An RTC device is represented in the kernel as an instance of the struct rtc_device structure. Unlike other kernel framework device registrations (where the device is given as a parameter to the registering function), the RTC device is built by the core, and is registered before the rtc_device structure gets returned to the driver. The device is built and registered with the kernel using the rtc_device_register() function:
struct rtc_device *rtc_device_register(const char *name, struct device *dev,
const struct rtc_class_ops *ops,
struct module *owner)
The meanings of the parameters of the are as follows: