| 전자부품 데이터시트 검색엔진 |
|
UM0851 데이터시트(PDF) 40 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0851 데이터시트(HTML) 40 Page - STMicroelectronics |
|
40 / 245 page ![]() Platform section UM0851 40/245 Doc ID 16604 Rev 2 Figure 6. RTC software system architecture Note: To get access to the real time clock, you need to create a character special file /dev/rtc with major number 10 and minor number 135. An "RTC Class" framework is defined to support several different RTCs. It offers three different user space interfaces: ● /dev/rtcN … much the same as the older /dev/rtc interface. ● /sys/class/rtc/rtcN … sysfs attributes support read-only access to some RTC attributes. ● /proc/driver/rtc … the first RTC (rtc0) may expose itself using a proc-fs interface. The kernel has a dedicated RTC subsystem providing the top-layer char driver and a core infrastructure that bottom-layer RTC drivers can use to tie in with the top layer. The main components of this infrastructure are the rtc_class_ops structure and the registration functions, rtc_device_[register|unregister](). Bottom-layer RTC drivers scattered under different bus-specific directories are unified with this subsystem under drivers/rtc/. Linux RTC class interface struct rtc_class_ops { struct module *owner; int (*open)(struct device *); void (*release)(struct device *); int (*ioctl)(struct device *, unsigned int, unsigned long); int (*read_time)(struct device *, struct rtc_time *); int (*set_time)(struct device *, struct rtc_time *); int (*read_alarm)(struct device *, struct rtc_wkalrm *); int (*set_alarm)(struct device *, struct rtc_wkalrm *); int (*proc)(struct device *, struct seq_file *); int (*set_mmss)(struct device *, unsigned long secs); }; rtc = rtc_device_register(pdev->name, &pdev->dev, hwclock /dev/rtc Linux RTC Class RTC driver RTC hardware Hardware Kernel space User space |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |