summaryrefslogtreecommitdiffstats
path: root/sys/dev/ic/mpi.c
diff options
context:
space:
mode:
authormbalmer <mbalmer@openbsd.org>2006-05-27 18:22:04 +0000
committermbalmer <mbalmer@openbsd.org>2006-05-27 18:22:04 +0000
commit7d227b4355e50fed2768e715c4d6fe533ba2619a (patch)
treeff19445b229efc3d512ba30f8dbf0075ce9ed2b8 /sys/dev/ic/mpi.c
parentDo not print an error in case of ENOPROTOOPT. Install medias do not have (diff)
downloadwireguard-openbsd-7d227b4355e50fed2768e715c4d6fe533ba2619a.tar.xz
wireguard-openbsd-7d227b4355e50fed2768e715c4d6fe533ba2619a.zip
When the device is attached, immediately create the timedelta sensor with the
SENSOR_FINVALID flag set and without a description. We do not need a dummy description as a sensor with the FINVALID flags set will not show up or be used anyways. It's merely an indication to applications that there is a sensor that will eventually have a correct value. The SENSOR_FINVALID flag is removed and the description is set to the proper clockname as soon as we have received the first valid time information. This enables ntpd to check for hotplug events and rescan the list of timedelta sensors after a hotplug event. discussed with deraadt.
Diffstat (limited to 'sys/dev/ic/mpi.c')
0 files changed, 0 insertions, 0 deletions