| Age | Commit message (Collapse) | Author |
|
discussed on irc.
NFCI intended.
Ride the earlier kernel bump - it;s getting crowded.
|
|
|
|
mlelstv.
- Protect NTP stuff in COMPAT_50 codes by NTP macro.
Approved by mlelstv
|
|
a kernel with LOCKDEBUG make clockctl a module:
/etc/rc.d/ntpd stop
modunload clockctl
/etc/rc.d/ntpd start
boom.
|
|
|
|
All have been set to "nodiscard"; some should get a real implementation.
|
|
designated initializers.
I have not built every extant kernel so I have probably broken at
least one build; however I've also found and fixed some wrong
cdevsw/bdevsw entries so even if so I think we come out ahead.
|
|
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
|
|
ntp_timestatus instead of leaving it uninitialised, and don't use
copyout(9) because args->retval is in kernel space, not user space.
Previously, running ntpd(8) in unprivileged mode would call
libc ntp_adjtime(), which would open /dev/clockctl and call
ioctl(CLOCKCTL_NTP_ADJTIME), which would fail with EFAULT.
|
|
|
|
- add missing break in CLOCKCTL_NTP_ADJTIME.
|
|
- don't check args->tp, just let copyin() fail.
|
|
make it so.
fixes crashes seen on sparc64 systems with clockctl.
|
|
|
|
okay christos@
|
|
compat code in order to avoid the stackgap.
|
|
|
|
|
|
- fix a couple of unused bugs
- no more -Wno-unused for i386
|
|
|
|
- struct timeval time is gone
time.tv_sec -> time_second
- struct timeval mono_time is gone
mono_time.tv_sec -> time_uptime
- access to time via
{get,}{micro,nano,bin}time()
get* versions are fast but less precise
- support NTP nanokernel implementation (NTP API 4)
- further reading:
Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf
NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html
|
|
|
|
|
|
- avoid wrapping of time in settime.
- pass struct proc down so that we can log a detailed message.
|
|
|
|
and need to be examined and discussed more.
|
|
be inserted into ktrace records. The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.
Bump the kernel rev up to 1.6V
|
|
what the rest of the pseudo-device attach infrastructure expects. It
didn't cause any harm that the function signature was wrong because it
ignored what it was passed.
|
|
kqueue provides a stateful and efficient event notification framework
currently supported events include socket, file, directory, fifo,
pipe, tty and device changes, and monitoring of processes and signals
kqueue is supported by all writable filesystems in NetBSD tree
(with exception of Coda) and all device drivers supporting poll(2)
based on work done by Jonathan Lemon for FreeBSD
initial NetBSD port done by Luke Mewburn and Jason Thorpe
|
|
returns(!).
|
|
This merge changes the device switch tables from static array to
dynamically generated by config(8).
- All device switches is defined as a constant structure in device drivers.
- The new grammer ``device-major'' is introduced to ``files''.
device-major <prefix> char <num> [block <num>] [<rules>]
- All device major numbers must be listed up in port dependent majors.<arch>
by using this grammer.
- Added the new naming convention.
The name of the device switch must be <prefix>_[bc]devsw for auto-generation
of device switch tables.
- The backward compatibility of loading block/character device
switch by LKM framework is broken. This is necessary to convert
from block/character device major to device name in runtime and vice versa.
- The restriction to assign device major by LKM is completely removed.
We don't need to reserve LKM entries for dynamic loading of device switch.
- In compile time, device major numbers list is packed into the kernel and
the LKM framework will refer it to assign device major number dynamically.
|
|
- copyin() the ntv argument to ntp_adjtime1(), to avoid some panics
- correctly handle the return value
And this still relates to kern/15519
|
|
paul@Plectere.com (see kern/15519)
|
|
|
|
|
|
|
|
time-related system calls through ioctls. For instance, if user daemon is able
to write to /dev/clockctl, then it is able to use the CLOCKCTL_SETTIMEOFDAY
ioctl on it, which will be equivalent to a settimeofday.
Approved by Christos
|