bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH hurd]: adding /dev/rtc device


From: Samuel Thibault
Subject: Re: [PATCH hurd]: adding /dev/rtc device
Date: Mon, 21 Oct 2024 13:37:38 +0200

Zhaoming Luo, le lun. 21 oct. 2024 19:31:19 +0800, a ecrit:
> Adding /dev/rtc device in the Hurd as described on [1]contributing website.
> 
> /dev/rtc is useless until rtc and the functions for accessing it are added in
> dev_name_list in GNU mach.

So there is no real reason to commit this for now, we have to wait for
the mach device to exist.

Also, perhaps it doesn't need to reside in mach and be a userland
translator, in which case it won't be devnode which will be needed here.

> ---
>  sutils/MAKEDEV.sh | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/sutils/MAKEDEV.sh b/sutils/MAKEDEV.sh
> index c3d7d112..6a65c8ea 100644
> --- a/sutils/MAKEDEV.sh
> +++ b/sutils/MAKEDEV.sh
> @@ -120,7 +120,7 @@ mkdev() {
>      ;;
>  
>        std)
> -    mkdev console tty random urandom null zero full fd time mem klog shm
> +    mkdev console tty random urandom null zero full fd time mem klog shm rtc
>      ;;
>        console|com[0-9])
>      st $I root 600 c /hurd/term ${DEVDIR}/$I device $I;;
> @@ -155,6 +155,8 @@ mkdev() {
>      st $I root 644 c /hurd/storeio --no-cache time ;;
>        mem)
>      st $I root 660 c /hurd/storeio --no-cache mem ;;
> +      rtc)
> +    st $I root 660 c /hurd/devnode $I ;;
>        klog)
>          st $I root 660 c /hurd/streamio kmsg;;
>        # ptys
> 
> 
> --
> Zhaoming Luo [2]<zhaoming1357@qq.com>
> 
> 
> References:
> 
> [1] https://darnassus.sceen.net/~hurd-web/contributing/#index1h2
> [2] mailto:zhaoming1357@qq.com

-- 
Samuel
#ifndef I_WISH_WORLD_WERE_PERFECT
/* It is not :-( All the routers (except for Linux) return only
...
 -+- linux/net/ipv4/ipip.c -+-



reply via email to

[Prev in Thread] Current Thread [Next in Thread]