Add kern_ntp_adjtime(9).
struct timex is not 32-bit safe, it uses longs for members. Provide translation.
Details
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Skipped - Unit
Tests Skipped - Build Status
Buildable 35182
Event Timeline
I'd be tempted to pass timex_copyin and timex_copyout function pointers to kern_ntp_adjtime rather than having duplicate code in sys_ and freebsd32_. That would also simplify a future compat syscall implementation.
sys/kern/kern_ntptime.c | ||
---|---|---|
1089–1109 | This looks like it's part of a future syscall revision, not the compat change? |
Right now it seems there will be no compat syscall, ie struct timex is not going to change.
Do you still want copyin callbacks there ? It is more overhead in code for rather trivial wrappers IMO.
This is a xdma_desc_dmamap_cb in , the name is too short and nondescript. I do not think descriptor allocation belongs in xdma at all, but this is wrong nonetheless.