#
ad9f1588 |
| 28-Mar-2022 |
riastradh <riastradh@NetBSD.org> |
driver(9): devsw_detach never fails. Make it return void.
Prune a whole lotta dead branches as a result of this. (Some logic calling this is also wrong for other reasons; devsw_detach is final --
driver(9): devsw_detach never fails. Make it return void.
Prune a whole lotta dead branches as a result of this. (Some logic calling this is also wrong for other reasons; devsw_detach is final -- you should never have any reason to decide to roll it back. To be cleaned up in subsequent commits...)
XXX kernel ABI change to devsw_detach signature requires bump
show more ...
|
#
7cd8f2ab |
| 21-Feb-2020 |
joerg <joerg@NetBSD.org> |
Explicitly cast pointers to uintptr_t before casting to enums. They are not necessarily the same size. Don't cast pointers to bool, check for NULL instead.
|
#
1a480a4c |
| 01-Mar-2019 |
pgoyette <pgoyette@NetBSD.org> |
Rename the MODULE_*_HOOK() macros to MODULE_HOOK_*() as briefly discussed on irc.
NFCI intended.
Ride the earlier kernel bump - it;s getting crowded.
|
#
cc17ee2e |
| 27-Jan-2019 |
pgoyette <pgoyette@NetBSD.org> |
Merge the [pgoyette-compat] branch
|
#
01d464d0 |
| 21-Nov-2016 |
rin <rin@NetBSD.org> |
- Return ENOTTY rather than EINVAL for invalid ioctl, suggested by mlelstv. - Protect NTP stuff in COMPAT_50 codes by NTP macro.
Approved by mlelstv
|
#
1a1b952e |
| 06-Jan-2016 |
christos <christos@NetBSD.org> |
Simplify and fix the unload to destroy the mutex. To reproduce, configure a kernel with LOCKDEBUG make clockctl a module:
/etc/rc.d/ntpd stop modunload clockctl /etc/rc.d/ntpd start
Simplify and fix the unload to destroy the mutex. To reproduce, configure a kernel with LOCKDEBUG make clockctl a module:
/etc/rc.d/ntpd stop modunload clockctl /etc/rc.d/ntpd start boom.
show more ...
|
#
edf0b344 |
| 07-Dec-2015 |
pgoyette <pgoyette@NetBSD.org> |
Modularize the clockctl pseudo-device and link to the build.
|
#
1a918832 |
| 25-Jul-2014 |
dholland <dholland@NetBSD.org> |
Add d_discard to all struct cdevsw instances I could find.
All have been set to "nodiscard"; some should get a real implementation.
|
#
76258fa0 |
| 16-Mar-2014 |
dholland <dholland@NetBSD.org> |
Change (mostly mechanically) every cdevsw/bdevsw I can find to use designated initializers.
I have not built every extant kernel so I have probably broken at least one build; however I've also found
Change (mostly mechanically) every cdevsw/bdevsw I can find to use 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.
show more ...
|
#
5f819ca3 |
| 27-Oct-2012 |
chs <chs@NetBSD.org> |
split device_t/softc for all remaining drivers. replace "struct device *" with "device_t". use device_xname(), device_unit(), etc.
|
#
9c3f3b7c |
| 04-Jan-2012 |
apb <apb@NetBSD.org> |
When processing ioctl CLOCKCTL_NTP_ADJTIME, set the return value from ntp_timestatus instead of leaving it uninitialised, and don't use copyout(9) because args->retval is in kernel space, not user sp
When processing ioctl CLOCKCTL_NTP_ADJTIME, set the return value from 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.
show more ...
|
#
0dd621a0 |
| 03-Oct-2009 |
elad <elad@NetBSD.org> |
Move clockctl policy exception back to the subsystem.
|
#
c99ea852 |
| 22-Feb-2009 |
nakayama <nakayama@NetBSD.org> |
- fix copyout size in CLOCKCTL_O?ADJTIME. - add missing break in CLOCKCTL_NTP_ADJTIME.
|
#
f5e9e809 |
| 18-Feb-2009 |
mrg <mrg@NetBSD.org> |
simply the previous as suggested by enami: - don't check args->tp, just let copyin() fail.
|
#
6e512790 |
| 18-Feb-2009 |
mrg <mrg@NetBSD.org> |
clock_settime1() expects the struct timespec * to be in kernel space. make it so.
fixes crashes seen on sparc64 systems with clockctl.
|
#
461a86f9 |
| 11-Jan-2009 |
christos <christos@NetBSD.org> |
merge christos-time_t
|
#
abb7851f |
| 25-Nov-2007 |
elad <elad@NetBSD.org> |
Refactor time modification checks and place them in the secmodel code.
okay christos@
|
#
ef3fdc4a |
| 12-May-2007 |
dsl <dsl@NetBSD.org> |
Change interface to settimeofday1() so that it can also be used from compat code in order to avoid the stackgap.
|
#
53524e44 |
| 04-Mar-2007 |
christos <christos@NetBSD.org> |
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
#
168cd830 |
| 16-Nov-2006 |
christos <christos@NetBSD.org> |
__unused removal on arguments; approved by core.
|
#
4d595fd7 |
| 12-Oct-2006 |
christos <christos@NetBSD.org> |
- sprinkle __unused on function decls. - fix a couple of unused bugs - no more -Wno-unused for i386
|
#
f649f50b |
| 29-Aug-2006 |
christos <christos@NetBSD.org> |
fix incomplete initializer
|
#
de4337ab |
| 07-Jun-2006 |
kardel <kardel@NetBSD.org> |
merge FreeBSD timecounters from branch simonb-timecounters - struct timeval time is gone time.tv_sec -> time_second - struct timeval mono_time is gone mono_time.tv_sec -> time_uptime - access to
merge FreeBSD timecounters from branch simonb-timecounters - 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
show more ...
|
#
f7f0b661 |
| 09-Mar-2006 |
christos <christos@NetBSD.org> |
Do not use SCARG() in userland. Eliminates need for <sys/systm.h>.
|
#
95e1ffb1 |
| 11-Dec-2005 |
christos <christos@NetBSD.org> |
merge ktrace-lwp.
|