freebsd-dev/sys
Alexander Motin 81dc00331d Make msgbuf_peekbytes() not return leading zeroes.
Introduce new MSGBUF_WRAP flag, indicating that buffer has wrapped
at least once and does not keep zeroes from the last msgbuf_clear().
It allows msgbuf_peekbytes() to return only real data, not requiring
every consumer to trim the leading zeroes after doing pointless copy.
The most visible effect is that kern.msgbuf sysctl now always returns
proper zero-terminated string, not only after the first buffer wrap.

MFC after:	1 week
Sponsored by:	iXsystems, Inc.
2021-12-10 23:35:53 -05:00
..
amd64 ed: Remove options 2021-12-09 17:41:39 -07:00
arm Fix a set but not used warning in the arm GIC driver 2021-12-10 13:29:11 +00:00
arm64 Fix set but not used warnings in arm64 rockchip 2021-12-10 13:29:11 +00:00
bsm
cam ctl: plug set-but-not-unused var 2021-12-10 12:06:48 +00:00
cddl Allow ddb and dtrace use the DMAP region on arm64 2021-10-01 11:27:33 +01:00
compat Create wrapper for Giant taken for newbus 2021-12-09 17:04:45 -07:00
conf ed: Remove options 2021-12-09 17:41:39 -07:00
contrib modules: increase MAXMODNAME and provide backward compat 2021-12-09 18:09:53 +00:00
crypto cryptosoft: Fully support per-operation keys for auth algorithms. 2021-12-09 11:52:42 -08:00
ddb Create sys/reg.h for the common code previously in machine/reg.h 2021-08-30 12:50:53 +01:00
dev hdda: Remove extra topo_unlock 2021-12-10 10:01:21 -07:00
dts add rk3328 overlay for enabling analog sound 2021-11-13 11:09:23 +02:00
fs nfscl: Check for an error return from nfsrv_getattrbits() 2021-12-09 14:32:22 -08:00
gdb
geom Revert "geom_bde: plug set-but-not-used vars" 2021-12-09 19:23:05 +00:00
gnu
i386 ed: Remove options 2021-12-09 17:41:39 -07:00
isa
kern Make msgbuf_peekbytes() not return leading zeroes. 2021-12-10 23:35:53 -05:00
kgssapi
libkern
mips busdma: Remove outdated comments about Giant. 2021-12-09 22:18:53 -05:00
modules if_epair: fix module build outside of kernel build environment 2021-12-11 11:07:50 +07:00
net Create wrapper for Giant taken for newbus 2021-12-09 17:04:45 -07:00
net80211 net80211(4): Fix a typo in a sysctl description 2021-12-04 12:09:17 +01:00
netgraph ng_ubt(4): Add missing module dependency for _net_bluetooth sysctl node. 2021-12-08 10:18:32 +01:00
netinet ifnet_byindex() actually requires network epoch 2021-12-06 09:32:31 -08:00
netinet6 in6p_set_multicast_if(): fix malloc(M_WAITOK) with epoch 2021-12-06 14:33:23 -08:00
netipsec ipsec: fix a panic with INVARIANTS 2021-12-03 14:22:23 -09:00
netpfil pfsync: fix incorrect enabling of defer mode 2021-12-06 13:25:14 +01:00
netsmb
nfs kernel: partially revert e9efb1125a15, default inet mask 2021-11-14 14:12:25 -06:00
nfsclient
nfsserver
nlm
ofed socket: De-duplicate SBLOCKWAIT() definitions 2021-09-14 09:01:32 -04:00
opencrypto cryptosoft: Stop single-threading requests within a session. 2021-12-09 11:52:43 -08:00
powerpc busdma: Remove outdated comments about Giant. 2021-12-09 22:18:53 -05:00
riscv riscv: Fix PLIC -Wunused-but-set-variable warnings 2021-12-10 04:51:32 +00:00
rpc mbuf: Only allow extpg mbufs if the system has a direct map 2021-11-16 13:31:04 -05:00
security Add idle priority scheduling privilege group to MAC/priority 2021-12-10 04:54:48 +02:00
sys Make msgbuf_peekbytes() not return leading zeroes. 2021-12-10 23:35:53 -05:00
teken
tests
tools syscalls: add COMPAT13 2021-12-09 02:48:32 +02:00
ufs Revert "ffs(3): Fix a typo in a sysctl description" 2021-12-05 13:45:47 +01:00
vm swapoff: add one more variant of the syscall 2021-12-09 02:48:46 +02:00
x86 x86: plug a set-but-not-unused var in native_lapic_ipi_free 2021-12-10 11:55:03 +00:00
xdr
xen Create wrapper for Giant taken for newbus 2021-12-09 17:04:45 -07:00
Makefile