通過/sys/class/rtc/rtcX/date 獲取rtc的時間

每個rtc的driver都會調用rtc_device_register 來想系統註冊rtc的驅動,在rtc_device_register中會自動爲每個rtc device建立一個sys的接口     rtc->dev.class = rtc_class;     rtc->dev.groups = rtc_get_dev_attribute_groups(); 爲rtc建立的sys的入口的源碼在
相關文章
相關標籤/搜索