On Sat, Oct 26, 2024 at 5:45 AM Zhaoming Luo <zhaoming1...@qq.com> wrote: > Hi,
Hi, > - Which server should have the implementation pioctl-ops.c, pfinet or > lwip? /dev/rtc is the Real Time Clock device, right? If so, it has nothing to do with the TCP/IP stack, in either of the two implementations (pfinet or lwip). > The directory of pfinet has the register definitions for rtc > device[1], That's simply because pfinet is based on code borrowed from Linux (as 'linux-src/include/linux' in the path suggests). But pfinet is not meant to provide all the functionality that Linux has, only the TCP/IP stack. > but the document mentions that lwip can be a replacement for > pfinet. Maybe we can move mc146818rtc.h to lwip, or create a new server > (because pfinet and lwip are for TCP/IP), or there is a server which > should handle accessing rtc. Yes, that sounds like it should be a new server whose binary will be installed at /hurd/rtc. Generally, having more small, isolated userland servers is a good thing, we're a microkernel system :) Sergey