dvem_rtc_register_device

The interface has the following parameters.
  • Syntax:
    #define devm_rtc_register_device(device) __devm_rtc_register_device(THIS_MODULE, device) 
    int __devm_rtc_register_device(struct module *owner, struct rtc_device *rtc)
  • Description: The function is used to register an RTC device.
  • Parameter:
    • owner: The module to which the RTC device belongs.

    • rtc: The target RTC device to register.

  • Return:
    • Success: 0.
    • Failure: Error code.